How to query both pages and posts by a specific tag?
-
Hello everyone!
I am building an online music magazine using WordPress and BuddyPress. We have news (10-15 daily) and articles (1-2 daily). The writers create news by adding a post, and they add the related info (e.g. band name, venue name) as a tag. Articles are created as pages – there are 4 categories, all of them have a custom post type.
I would like to list everything related to a specific article. For example, if there is an article about a band called Lorem Ipsum, all news and articles tagged with “lorem ipsum” should be listed in the sidebar next to it. Is there a plugin out there to do that, or should I try something with custom fields? The smallest idea is really appreciated.
Thanks in advance,
Csaba
- The topic ‘How to query both pages and posts by a specific tag?’ is closed to new replies.