Latest wordpress tips

28
Nov 2011

Search specific category in wordpress

posted in: tips

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"
/form

continue reading »

View Comments

28
Nov 2011

Remove p tags from images

posted in: tips

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');

continue reading »

View Comments

3
Aug 2011

Beyond the 5 minute install

Beyond the 5 minute install

posted in: tips

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.

continue reading »

View Comments

2
Aug 2011

Add multiple menus to a wordpress site

Add multiple menus to a wordpress site

posted in: tips

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.

continue reading »

View Comments

18
Jul 2011

Add post thumbnails to RSS feed

Add post thumbnails to RSS feed

posted in: tips

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.

continue reading »

View Comments

25
May 2011

How to fix RSS feed for WordPress

How to fix RSS feed for WordPress

posted in: tips

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″

continue reading »

View Comments
Page 1 of 3123»

© All Rights Reserved - Site by Callender Creates