Display posts with specific category and tag
-
I’m trying to use the Display Posts plug-in to display links to a set of posts with a specific category and tag in a specific area of my site.
I started by trying to use two specific categories and within the shortcode something like category=”category-1, category-2″ in one section of the page and category=”category-1, category-3″ in a different section of the page. This seemed to render as an “OR” condition rather than “AND” because anything labeled as category-1 displayed in both sections, which is not what I want.
Therefore, I switched to using a single category with different tags. So now, I have something like category=”category-1″ tag=”tag-1″ for one section and category=”category-1″ tag=”tag-2″ for the other section. This also does not seem to work as I only see the first post for the first section and nothing for the second section.
So, I’m looking for a solution so that I can separate posts into something like the following:
- Category 1 (e.g. category)
- Issue 1 (e.g. tag)
- Issue 2 (e.g. tag)
- Issue 3 (e.g. tag)
- Category 2 (e.g. category)
- Issue 1 (e.g. tag)
- Issue 2 (e.g. tag)
- Issue 3 (e.g. tag)
- Category 3 (e.g. category)
- Issue 1 (e.g. tag)
- Issue 2 (e.g. tag)
- Issue 3 (e.g. tag)
These different categories are separated into different accordion sections within my site, and I would rather not have to make a bunch of individual categories each with the same sets of issues, i.e. Category 1 – Issue 1.
Any help would be much appreciated!
The page I need help with: [log in to see the link]
- Category 1 (e.g. category)
- The topic ‘Display posts with specific category and tag’ is closed to new replies.