Display custom posts from certain taxonomy term
-
Hey all,
I know this is very, very rookie stuff but somehow I can’t figure out what’s going wrong (even though I did this before!)
I created a custom post type called “bars”. And a taxonomy called “type”, assigned to ‘bars’. To test I created a term called “music”, wrote a post using the bars post type, I checked “music” in the “type” taxonomy (so that seems to prove at least that is working) and saved it.
Now…when I go to: mydomain.com/type/music
I expected that all the content with the “music” term assigned to it should show up, right? It didn’t. wordpress is saying it couldn’t find any posts…so to test I created the tag cloud list using:
<?php wp_tag_cloud( array( ‘taxonomy’ => ‘type’, format => ‘list’ ) ); ?>
This works, the link “music” shows up and links to the same url as above. I must be doing sth so terribly wrong but I can’t figure it out…
Thanks!
- The topic ‘Display custom posts from certain taxonomy term’ is closed to new replies.