Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 504799

Confused about taxonomy templates

$
0
0

Replies: 0

I have standard posts in my site, plus a custom post type called Locations. I also created custom taxonomies for State and Country. Within Posts and Locations, you can assign states (e.g. Alaska) and countries (e.g. USA) to individual posts.

What I’d like to do, at minimum, is have a custom taxonomy page for states (e.g. Alaska) that would show all the Locations with that state assignment. Ideally, I’d like to be able to show all Locations (custom post type) and Posts (standard post) with that state assignment.

How do I do that without having to create taxonomy-state-alaska.php, taxonomy-state-arkansas.php. Is there a way to use a generic state template and then feed in individual state content on a dynamic basis?


Viewing all articles
Browse latest Browse all 504799

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>