Get posts from multiple categories

Posted 10 years ago by Evan Tishuk

If you're like me, you've scratched your head wondering how to grab WordPress posts from more than one category or tag. More specifically, not just posts from several categories but from overlapping categories--"so if category x and y are chosen, it will not show posts from category x and category y, but only those that belong to both categories." Despite the fact that this seems like such a simple and obvious feature, it's not part of WordPress's core functionality. I tried hacking functions. I tried doing surgery on WordPress's bowels. Then I found the Intersect plugin, and punched myself in the face for wasting so much time. I hope this post helps someone else find the plugin faster than I did (it was buried in the WP plugin databased under the "misc" category and written in French).

1 Comments

Maciej Rydlewicz ~ 3 years ago

Hi, Yes, I would like to get mentioned plugin, as until now I've found is nothing like that.
The idea is simple:
[listposts category=cat1,cat2 belongsto=all] or optional: any, none...
Would you please whisper a word how are you managing it?

For reservations, call office(800) 890-1702. Send fan mail to our work location at 101 N Main Street, Third Floor, Greenville, SC 29601 USA 34.850823 -82.398746
Lovingly crafted by orangecoat with some rights reserved, and a promise not to spam you.

Back to top