Let’s say that on a category page of your WordPress blog, you want to display a secondary list of posts, for example the 3 latest posts from a “featured” category.
You have a couple of good options here:
1. create a new WP_Query object, or
2. use the get_posts() function.
Note: Using query_posts() is a bad option as it [...]
WordPress Development
WordPress Snippet: Display multiple loops on the same page
December 12th, 2009
No Comments
Wordpress Function: in category extended
November 30th, 2009
No Comments
The core Wordpress function in_category() is pretty handy but it’s also pretty basic.
in_category_extended() is designed to extend the functionality of in_category() in the following ways:
test if the current post is assigned to the specified category OR any descendant categories
return TRUE if you are viewing the specified category page OR any descendant category pages
Sure, you [...]
The core Wordpress function in_category() is pretty handy but it’s also pretty basic.
in_category_extended() is designed to extend the functionality of in_category() in the following ways:
test if the current post is assigned to the specified category OR any descendant categories
return TRUE if you are viewing the specified category page OR any descendant category pages
Sure, you [...]






