WordPress Development

WordPress Snippet: Display multiple loops on the same page

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 [...]

Read More »


Wordpress Function: in category extended

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 [...]

Read More »