Author Archives: Muhammad Faridul Islam

WordPress 3.0

Arm your vuvuzelas: WordPress 3.0, the thirteenth major release of WordPress and the culmination of half a year of work by 218 contributors, is now available for download (or upgrade within your dashboard). Major new features in this release include a sexy new default theme called Twenty Ten. Theme developers have new APIs that allow […]

List of Internet top-level domains

The following is a list of Internet top-level domains. The top-level domain article provides the background information. The official list of all top-level domains is maintained by the Internet Assigned Numbers Authority (IANA). Generic top-level domains gTLD Entity Notes .aero air-transport industry Must verify eligibility for registration; only those in various categories of air-travel-related entities […]

Graphics

Graphics (from Greek γραφικός graphia) are visual presentations on some surface, such as a wall, canvas, computer screen, paper, or stone to brand, inform, illustrate, or entertain. Examples are photographs, drawings, Line Art, graphs, diagrams, typography, numbers, symbols, geometric designs, maps, engineering drawings, or other images. Graphics often combine text, illustration, and color. Graphic design […]

Difference between a vector and a scalar

A scalar is just a number, and a vector is a number with a direction involved. In the first question, pounds, newtons, and dynes are all *forces*. A force can’t exist as just a number; force has to be directed somewhere. 2 kilometers/hour east gives you a number and a direction. The answer a) is […]

Limit WordPress Post or Page Content

Copy this function and paste in the function.php ———— function dp_clean($excerpt, $substr=0) { $string = strip_tags(str_replace(‘[…]‘, ‘…’, $excerpt)); if ($substr>0) { $string = substr($string, 0, $substr); } return $string; } Call this function in your index.php ———– < ?php echo dp_clean($post->post_content, 250); ? >

Simple WordPress Title Limit Function

Put this code in to your function.php (Note: Fix php tag!)- < ?php  function the_title2($before = ”, $after = ”, $echo = true, $length = false) { $title = get_the_title(); if ( $length && is_numeric($length) ) { $title = substr( $title, 0, $length ); } if ( strlen($title)> 0 ) { $title = apply_filters(‘the_title2′, $before […]

Get Category or Page Depth or level

get_depth() As far as I know there is no function in WordPress that return the page or category depth. I created a function that returns the depth of a page or category. The depth is how many levels from the root the page or category in its hierarchy. The root level number is 0. <? […]