Custom loop to load CPT by category?
-
I have a custom post type called “project” and a list of 8 CPT categories. I am using the genesis framework to build my site. I have created a custom loop that pulls the project posts to a page, but I want to be able to load the page by taxonomy. Right now no matter which category I select, all posts show up. I know I need to create an array that pulls the taxonomy, but I’m still learning PHP and not 100% sure how to write it. Can anyone assist?
My code is here:
https://pastebin.com/NVnRBr3dMany thanks!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Custom loop to load CPT by category?’ is closed to new replies.