Query specific Taxonomy page
-
I have a slider that uses a featured meta key query to display posts. I’d like to also query or append to that featured post query a specific tag archive page that also has a featured meta key, so the tag’s featured image and description displays in my slider, just like the post featured images and excerpts display. So I end up with a slider that shows featured posts, as well as featured tag archive pages.
I know how to get the posts in the post_tag taxonomy, but I need the tag archive page itself. Is this even possible? Using ACF for the meta fields. Other ideas on how to handle this are welcome, and thanks in advance.
-
so the tag’s featured image and description displays in my slider
If you have a plugin that allows you to assign a featured image to a tag, then it also has a way to retrieve it. Use that. Otherwise, by default taxonomies do not have images associated with them or pages. (pages are generated by the theme in response to a query for that taxonomy)
Yes, I know all that. I’ve setup an ACF field for the featured image and my tag page displays it just fine. What I need is that tag page to display in my slider, along with the posts I’ve set as featured. Using the tag’s description as the post content or excerpt in the slider, and the tag’s featured image as the slider image. Again – not looking for the posts with the tag, the tag page itself.
I’d think there has to be a way to use custom query to get a specific tag archive page, but everything I’m finding tells me how to get the posts with the tag, and that’s not what I need.
There are no front end tag pages. All front end pages query posts in various ways.
You can use the wp_list_categories function to get the terms in a taxonomy.
Or get_taxonomy to get all the info about a taxonomy.I don’t think I’m explaining what I’m trying to do very well. I’ve found another way to achieve what I need.
The topic ‘Query specific Taxonomy page’ is closed to new replies.