Loop through Categories across post types
-
Hey guys,
I have about 5 custom post types that all use the standard categories as a taxonomy.
I have a slider on the front page of my website and I want to be able to be able to load posts into it from anywhere within these 5 post types by just clicking “Featured Slider” category. This cat ID is 7.
This is my loop- you can see that right now I have specified my post type… if I dont specify a post type i can’t just be broad and loop through all posts with the category Featured Slider. Is there a way to check everything that has this category?
[Code moderated as per the Forum Rules. Please use the pastebin]
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Loop through Categories across post types’ is closed to new replies.