Finally I’ve figured it out, I didn’t elaborate on this in my question but I had exclude_from_search
set to true
on register_post_type
which is obviously why no posts were being displayed in the taxonomy-video_category.php
template file.
Changed it to false and posts are now displayed.
// ...
$args = array(
'labels' => $labels,
'description' => 'Holds our Videos and Video specific data',
'public' => true,
'exclude_from_search' => false,
'menu_position' => 5,
'supports' => array('title', 'editor', 'page-attributes', 'thumbnail'),
'has_archive' => true,
'rewrite' => array('slug' => 'how-to-videos')
);
register_post_type('video', $args);
// ...
Further explanation on exclude_from_search
in this question.
Related Posts:
- Add category base to url in custom post type/taxonomy
- Custom Post Type Permalink / Rewrite not working immediately
- Custom Taxonomy as Dropdown in admin
- Custom Post type in separate database table for syncing
- Creating Photo Gallery System with Custom Post Type
- Custom Taxonomies Terms as Post Title for Custom Post Types upon Publishing
- has_term or in_category for Custom Post Types
- WP_Query -> sort results by relevance (= most tags / taxonomy terms in common)
- Correct way to use a form to to filter custom posts by taxonomy terms?
- Custom-Taxonomy as categories: Remove “most-used” tab?
- Custom Permalinks for Custom Post Types and Taxonomies
- how to group custom post type posts by custom taxonomy terms
- Showing current taxonomy terms
- Unable to save custom taxonomy terms in a custom-built metabox
- Custom Taxonomy order by Custom Field
- Custom Post Type: How to display all of same taxonomy?
- pre get posts changing the query
- Custom Taxonomy not showing as option on custom post page
- Querying CPT with Two Taxonomies
- Get Custom Field Values by Another Custom Field in WordPress
- Wp Rest API request posts from a custom taxonomy
- how to get archive urls with same origin for custom types and terms?
- Custom Query to display posts with custom field
- Get taxonomy description based on variable
- Displaying Metabox value (custom post type taxonomy)
- multiple url slug for single custom post type
- Pretty URLs for Custom Post Type & Custom Taxonomy with Duplicate Slugs on WPML
- How is this CPT code in functions.php adding a hidden “products” category?
- Displaying Multiple Post types in Taxonomy
- Filter by custom taxonomy slug on a custom post type
- Create 3 Level Relations with ACF and WordPress
- Pagination : How to remove /page/x/ after a ‘POST’ action on a form returning to page 1
- Archive page for taxonomy terms
- Display Recently Added Custom Post Types with Custom Taxonomy Shortcode
- How do I display tags for a custom post type single page?
- Add custom taxonomy to post content body?
- Limit amount of posts made within a custom taxonomy
- Issue on Creating Custom Tax Term Dynamically From Another CPT Meta-box On Publish
- Dynamic dropdown select values depending on other custom field value
- Query Custom Post Type Taxonomy term with multiple parameters
- Post format alternative?
- Permalink structure with custom taxonomies and custom post type like /parent-tax/child-tax/custom-post-type-name (with no base name)
- Querying Custom Post Type, ordering by Custom Taxonomy Pagination Not Working
- Custom post type and taxonomy permalinks
- Exclude custom taxonomy term posts from custom post loop
- Create a permalink structure with custom taxonomies and custom post types gives 404
- Not Able To Render Single-CustomPostType.php File
- Using page slug in wp_query
- Custom taxonomy (categories) on custom post type return no results
- Custom taxonomy wp_query woes.
- previous_post_link in same taxonomy in custom post type
- Remove taxonomies using register_post_type_args
- Different options per post type in WP_Query
- Change custom taxonomy archive permalink
- Rewrite custom post type with taxonomy
- Display both parent and child custom taxonomy / content
- how to count the current posts terms
- Get template part with CPT and Custom Taxonomy conditionals
- Displaying One Custom Post Type’s Content On Single Post of Another Custom Post Type
- Is there a way to make child posts inherit parent post terms?
- Custom post types category
- Add custom post type taxonomy tag to article class
- Custom Taxonomy dont save in a frontend form for post a custom post
- Query Custom Post by taxonomy multiple categories
- Advanced archive url structure (category, tag and date)
- Setup page template array in a custom post type
- Change Dropdown jQuery to show/hide but with default place holder that shows all
- Get Posts List of Current Selected Custom Taxonomy in Shortcode
- Custom taxonomy terms as children of multiple custom post types
- Custom Taxonomy and Categories
- custom taxonomy pagination 404 error
- Get the taxonomy value in the post loop inside the archive page
- How to display custom post type taxonomy in Contact Form 7 text field
- Custom Post Type & Taxonomies – Rewrite
- Filter in Custom post type to find the parent post
- Excluded Custom Taxonomy Term Posts Displaying in loop
- Change CPT permalink to use the category
- Listing all custom posts having a specific taxonomy whatever the terms
- Create a Hierarchical List of Custom Taxonomies AND Posts
- Previous/Next custom post links within custom taxonomy
- Making permalink for custom post type/custom taxonomy. Stuck with 404 in the single post
- Custom Taxonomy page redirecting to 404 page
- Pretty permalink structure with multiple (AND OR) taxonomies
- Filter a custom taxonomy from displaying a button all other taxonomies can show
- Custom Taxonomy is disabled on Edit page
- Override “Parent” input for custom taxonomy
- Problem with type plugin and custom taxonomies
- WordPress Custom taxonomy template
- Custom post type – two taxonomies
- Get link for feed of specific post type AND taxonomy
- Why is this custom post type defaulting to archive.php?
- Sorting custom post types by taxonomy (So close)
- Check if taxonomy is attached to at least one post in a post-type
- Getting (Invalid) when adding custom taxonomy of custom post type link in menu [closed]
- Display custom taxonomy posts of custom post types
- Looping taxonomy in taxonomy?
- Return Custom Post Type Categories
- Custom Post type as Taxonomy
- ACF Relationship: Group posts by parent category term, then child [closed]
- Get X posts with the same terms as the current post (custom post type and custom taxonomy)