I added this code before my loop and separated the custom taxonomy templates rather than pointing them to one general search template to display results based on the current taxonomy. Hope this helps someone.
$current_cat = get_query_var('model');
$args = array(
'post_type' => 'truck',
'model' => $current_cat
);
query_posts($args);
Related Posts:
- How to use single.php for creating, reading and editing Custom Posts with ACF
- Load info from customposttype into template page
- Custom post type option page template
- Values show up in custom home page but not in custom post pages
- using a template for more then 1 page
- Custom Post Types vs. Advanced Custom Fields (with Repeater Field add-on)
- Multiple Frontend Filters Using Advanced Custom Fields
- Migrating a taxonomy’s tags to the native category
- Flush Rewrite Rules when new site is created on network
- Integrate Custom Post Type Events into Calendar
- Specific routing for CPT
- Order post by date with ACF
- Displaying custom field according to date
- WordPress custom taxonomy template not working
- How can I get this request to use the Custom Post Type page template instead?
- How to set the seo title tag on a page by page basis?
- WebP Fallback for Inline Background Image in Style Attribute
- Adavnced custom fields relationship query plus query inside
- Query based on custom fields start and end date
- How to specify a template for a path like http://example.com/something?
- Custom templates for a specific category
- Archive for a Taxonomy of a Custom Post type
- How To Import CPT With Only Few TEXT ACF Fields From Front End?
- Advanced custom field boolean value in custom post type
- Why is my WP Query not returning first result’s post meta?
- Custom post type pages return 404 page?
- WordPress 3.9 not using custom template
- Template files for Custom Post Type and Taxonomy
- Set templates for custom post types
- How to Create Template File for Parent Page of Custom Post Type
- Custom post_type search pages
- How to add/edit advanced custom fields on custom post type’s WordPress REST API?
- Recoverable Fatal Error – Object of class WP_Post could not be converted to string
- Querying & displaying custom post type into an existent page [closed]
- how to remove pages loading with the archive templates
- Main query not querying any posts in custom taxonomy template
- Custom Empty Results page for my Custom Post Type
- How to get a custom type post data when it has a connection with another custom type post?
- Custom post type showing same Post on all Pages
- Why would social icon badges disappear after adding a custom post type?
- Sort a custom post with ACF: Date Picker & Display Featured!
- Custom posts template page
- Loop through custom posts by taxonomy and display the titles in a list, it is repeating 8 times
- ACF repeater field usage
- How can I use archive-{post_type}.php theme template?
- List of users that clicked a ‘Join’ button at single post
- make permalink go to a custom single.php file
- Post loop count is not in order
- Add Previous/Next Buttons to CPT Single Pages Only
- Creating Sections for Post Types
- Custom post types with categories in template
- Creating separate feeds for custom post types
- Which file/template is in charge of taxonomies for custom post types?
- How to inherit field value from parent post into in child / sub post
- How can I add a shortcode to query Custom Post Type with ACF in WordPress?
- How can I trace inconsistency in loading a template?
- Custom Post Type page sorts differently on different environments
- Postname on unique permalink structure appends “-2” for a custom post type. How can I get this to stop happening?
- set_query_params using custom params defined in functions file?
- Custome fields not displayed
- How to get_term_meta on single custom post?
- Create short URL with auto 301 redirect
- ACF for custom post type archive pages: which hook to use?
- How to define the template for custom posts?
- Assigning alternate single-{cpt} template based on blog_id in multisite
- Batch Extract Date from post title and put into ACF custom field
- How do I find a way to create a global single.php for a custom post type?
- How do I assign a block template (.html) to a custom post type?
- Templates for hierarchical custom post type
- Query entries from custom post type in an ACF flexible content field
- Why is wp api returning old acf values?
- Distribute Custom Post in different pages
- get custom post type value in header.php [closed]
- Custom Post Type setup
- Apply template by path/slug related to custom post type?
- posttype and custom fields on multisite
- How do I get_the_postID() for a custom post that uses ACF repeater field?
- assign different templates to custom post type with homepage loop
- How do I replace the post title with a custom field?
- Advanced custom fields Post Object image field not displaying in custom post type single.php
- How to get the current category with custom posts
- Custom post type is using the index.php template
- Sum and count of custom field values
- Assign a template to a custom post type when displayed by the main loop on the home page
- How do I show a link or ‘Read More’ button on a custom field excerpt when it is less than the word limit
- How to export custom post type with ACF to individual file with automation?
- Custom fields not showing in custom post type
- Group by custom field value (start and end times)
- Custom post types, disable fields
- meta query not retrieving posts
- Get template part with CPT and Custom Taxonomy conditionals
- Template code to split a post and print a custom field?
- Displaying a list of Contacts
- How to create a template to show child terms of a MAIN taxonomy
- Custom Post Type with Configurable Sidebar via ACF
- How to change single custom post template by custom taxonomy?
- Custom Post Type homepage template
- Get A Custom Field From A Custom Taxonomy Of A Custom Post Type [closed]
- Custom permalink structure for remote content pages
- Custom Sidebar in Editor (not Widget) for Custom Post Type in Genesis