Category Archives: WordPress

Sitemaps XML format

This document describes the XML schema for the Sitemap protocol. The Sitemap protocol format consists of XML tags. All data values in a Sitemap must be entity-escaped. The file itself must be UTF-8 encoded. The Sitemap must: Begin with an

What are Sitemaps?

Sitemaps are an easy way for webmasters to inform search engines about pages on their sites that are available for crawling. In its simplest form, a Sitemap is an XML file that lists URLs for a site along with additional


A favicon (short for favorites icon), also known as a shortcut icon, website icon, URL icon, or bookmark icon is a 16×16 or 32×32 pixel square icon associated with a particular website or webpage. A web designer can create such

Line break in wordpress post

After write a new post i saw there was a problem with image what i’s inserted. First try to use < br > and < br / > tag but its not working. After Googling, i found there a solution,

Favicon add to Your site

What’s a favicon? A favicon (favorites icon) is an icon associated with a blog/site. Most popular browsers display favicons as 16×16 pixel icons next to the URL in the address bar, next to the title in tabs, and next to

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

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

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(

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

Code for custom field Image in recent post List

<h3>Recent Post</h3> <div> <!– use a custom field for image , Here the custom field name is = “newReleaseThumb” –> <?php $myposts = get_posts(‘numberposts=5&offset=1′);foreach($myposts as $post) > <div style=” width:100%; float:left; border:#FF0000 0px solid; padding: 5px; margin-bottom:2px; background:#0000FF;”> <div style=”width:95px;