How to use nested Sub-categories together with display-posts code

This code:

display-posts category=”0″

will pick up any posts which have the category of “0” checked, which is no posts at all on this site.

display-posts taxonomy=”category” tax_term=”0″

will pick up any posts which have any sub-category of “0” checked, which is almost everything on this site as “0” is parent/ancestor to most of the important categories.

This is not a bug, it is actually quite useful but you need to know the difference!!!

we use display-posts quite happily with up to 6 levels of nesting.

RM April 2017

2 thoughts on “How to use nested Sub-categories together with display-posts code”

Leave your comment on this page.....

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.