Multiple reference in template
-
Hi. I am trying to achieve the following.
List all taxonomy terms from a custom taxonomy.
Exclude 1 particular term.
In the same query, list all posts from the excluded taxonomy term and mix them with the other taxonomy terms.
For context, i have cities (tax) and locations (post type). The cities with multiple locations are taxonomies, but the single locations are posts only (thus they become cities in a way).
I’ve tried it in templates… But I can only reference either the post type or the taxonomy.
I was thinking something like setting two tenplates with <.li.>, wrapping both in <.ul.> then order them alphabetically via JS… But it doesn’t seem very elegant.
Can you help? I can find nothing on the web regarding a WP query that mixes tax terms with posts.
Thanks
- The topic ‘Multiple reference in template’ is closed to new replies.