Sometimes it’s easy to overthink things. I’m guilty of this with this issue. After a little frustration, I just tried to run the WordPress loop without a new query. So just a plain jane loop and it worked fine.
So my original issue was that on my archive-winemakers.php
page, I have a custom taxonomy called wineregion. I needed to list all the cities or areas that grow wine in Arizona. With these listed, the user can then click (for example Tucson Arizona) the link and he/she would be directed to my taxonomy-wineregion.php
page. Then on that page, all of the vineyards or wineries in Tucson would be shown on one page.
I suspect that given that the wine region query has been triggered, and you’re on the taxonomy page, that just running the loop gives you the results you need. Once in the loop, you can run the_title()
, the_permalink()
and everything else you would need to run in a basic loop.
Related Posts:
- Remove Custom Taxonomy Metabox from Custom Post Type Screen
- How to Add Custom Taxonomy To Woocommerce Plugin
- How to get the posts of a custom taxonomy term
- How can I rewrite URLs to pass taxonomy and post type values to the query?
- wp_set_object_terms() is not replacing term, but creating a new one
- Remove Trash / Delete option for Custom Post Type / Taxonomy
- How to filter custom post types by custom category taxonomy
- Custom Post Type Permalink For Parent/Child, 404 Page Not Found Error
- remove support for ‘Categories’ for a custom post type
- Categories under custom post types doesn’t show properly
- Hide child term posts on parent term pages
- How to select one major category (or custom taxonomy) for a custom post type?
- Custom taxonomy & post slug permalink
- List all posts in Custom Post Type but group dynamically by Custom Taxonomies
- get a list of posts from Custom Taxonomy
- Want to filter only parent post in admin area
- Custom Meta Boxes – Nonce Issue – Move to trash issue
- Child and grandchild taxonomy listings – 404
- Limit taxonomy results to a single cpt
- Display custom taxonomy as dropdown list
- Automatically Add a Category to a Custom Post Type
- Custom Permalink Tag breaks Pagination
- Query to change custom post type with specific category
- Custom post type and taxonomy permalinks – Structure
- Best action hook to create custom post and assign taxonomy terms to it on plugin activation?
- Custom Post Type and Custom Taxonomy Permalinks
- Relationship between two taxonomies and a custom post type [closed]
- Sharing a custom taxonomy with Multiple custom post types
- next_post_link on custom taxonomy
- Show Two custom Post type and their posts on category page
- How many Custom Post Types to register?
- Insert HTML inside link in a walker
- Change Permalink Structure for Tag.php template
- How to bulk copy custom fields between custom posts?
- get_attached_media() on author page not working
- CPT UI change custom taxonomy url
- Search / Filter posts on Title/Content OR Tags
- Show posts from two or more custom taxonomy terms
- Custom taxonomy and custom post type – wrong permalinks and template
- How can I make the slug of the taxonomy also the slug of the custom post
- How to list custom taxonomies in the back end
- How do I display the grand child items of a taxonomy term?
- Custom taxonomy returns 404
- How to get custom posts sub category link
- Displaying Custom Taxonomies From Multiple Custom Post Types
- Top Level pages in wordpress giving 404, but child pages working fine
- Display and register custom categories for custom post types
- Query posts with double taxonomy
- Properly flush rewrite rules on plugin activation
- Adding predefined terms to a taxonomy
- Loop to display custom post type from a custom Taxonomy
- Redirect to archive is single post has a certain term assigned to it?
- Custom query – get_the_terms not work
- Creating two loops based on different logic
- Custom taxonomies to define versions of a product
- How to select a template for a custom post type?
- category list with cutom post count
- Custom post type and taxonomy cross registration [duplicate]
- How to create a template to show child terms of a MAIN taxonomy
- How do I add new post formats to twenty fourteen theme?
- Display a random customposttype2 excerpt in single-custompostype1.php that shares same taxonomy
- Sorting the Loop by Taxonomy Value
- Custom archive page for custom taxonomy and pagination issue
- Ordering by meta value not working
- Custom taxonomy, post type, and URL permalink structure
- Getting Same Description in All the Custom Taxonomy Posts
- Get all post under custom post type grouped by custom filed value in custom taxonomy
- Order custom post type by taxonomy
- Return multiples taxonomies with wp_get_object_terms
- I have a random letter appearing before my content. Where to start looking for the cause?
- How to add CSS class field in Custom Taxonomy?
- How can I output a post’s custom taxonomies to a two column list?
- Taxonomie cpt with acf
- How to display custom post type pagination buttons when processing AJAX request
- Custom taxonomy with custom post type template not showing
- Loop to display parent categories in custom taxonomy
- One-Time Script TimeOut for Large Data
- Not Able to List CPT Based on Taxonomy Term
- Filter Term By Parent Term – Custom Post Type
- CPT Efficient way to display posts from different categories with custom query
- Best way to group posts based on custom post type terms
- Associate custom categories to different user IDs
- How to create default taxonomy term for a custom post type? [duplicate]
- Extensive search filtering and results->PDF in the front-end
- redirect old post type url to new structure url
- archive-{custom_post_type}.php not getting recognized wordpress
- How to retrieve the permalink for a specific (custom) term?
- Values inside a custom field to determine which category posts to display
- title tag for custom post type remove taxonomy name from title tag
- Display and Allow users to edit their own profiles
- Remove custom taxonomy ‘post-type’ from post URL
- Create a page selector using taxonomies
- Advanced search form with filters for custom taxonomies and custom fields
- Building a List of Posts grouped by custom taxonomy as the section header only to be displayed if at least one post is in that tax
- 404 Error On Custom Taxonomy Pages 2, 3, etc
- Code to show related posts (custom post type and custom taxonomy/category) is messing with other code
- register_term_meta not working
- Custom Post Type urls not working
- pre_get_posts causes Custom Posts appear under ‘Pages’ menu
- Show custom category archive as front page and remove taxonomy slug from urls