How to query post by custom taxonomy value?
-
Hey.
I made a custom post type called “medarbetare” (co-workers) and in this custom post I add a post for every co worker, and then tag them with a custom taxonomy called “titel”, where the value of titel is their title at our workplace. I want to loop these posts in under different headings on our about us page, but I cant get it to work. The query I′m using seems to give me all posts from this custom post type, with this custom taxonomy – but it ignores the value.
I added my code to pastebin, this is what it looks like:
https://pastebin.com/RzbWp8ThThe code thats not working here is the one under the comment <!– author-container-1 –>
I′m a designer and not a coder really, so I cant really say whats wrong. I′m thinking it might have to do with there beeing multiple querys on the page, but shouldnt the reset query take care of that?
- The topic ‘How to query post by custom taxonomy value?’ is closed to new replies.