Posted by on July 6, 2012

Sometimes we need to show the short description of new post from certain category, say, we want to show the latest post description from category is 29, and only show at homepage only, how to do then?

Here are the code for you, you can add them at proper place, say header.php:


Here “if (is_home()) ” is used to check the page is homepage or not, if the current page is homepage, then run the next code.

Posted in: WordPress