28
Nov 2011
There are some times when you want to limit your search to a particular category, or perhaps multiple categories. This is relatively simple to do in WordPress by adding a hidden field to your search code. (See example below)
form method="get" id="search form" action="/" input type="text" value="" name="s" id="s" input type="hidden" value="22" name="cat" id="scat" /formView Comments
28
Nov 2011
Simply paste the following code on your theme functions.php file, save it, and the <p> tags are gone.
function filter_ptags_on_images($content){
return preg_replace('/<p>\s*(<a .*>)?\s*(<img .* \/>)\s*(<\/a>)?\s*<\/p>/iU', '\1\2\3', $content);
}
add_filter('the_content', 'filter_ptags_on_images');
View Comments
3
Aug 2011
This is a fantastic presentation by Steve Taylor at the 2011 Wordcamp UK conference that shares some important information on how to make your wordpress install more secure and faster.
View Comments2
Aug 2011
Recently I need to implement multiple menu in wordpress. Often we comes in the situation where theme support only 1 menu whereas we need more than it. There is simple way I found in wordpress to do it by changes in few lines of code.
View Comments18
Jul 2011
This very cool piece of code will get the post thumbnail and automatically add it to your RSS feeds.
Paste the code into functions.php and save the file.
View Comments25
May 2011
Are you getting a broken RSS XML feed from feedburner and social networking services that take your sites RSS feed? Error message “Whitespace in line 1″
View Comments© All Rights Reserved - Site by Callender Creates