From your question I gather your taxonomy term names match your category names. If this is the case and always will be the case, why not just query your custom post type by category slugs? Not sure what the exact name is, so I just made it video
.
// get category slug
$cat = get_category( get_query_var( 'cat' ) );
$cat_slug = $cat->slug;
// query your custom post type (video?), assuming
// slugs match for your category name and taxonomy term name
$my_args = array(
'post_type' => 'video',
'tax_query' => array(
array(
'taxonomy' => 'your_taxonomy_name',
'field' => 'slug',
'terms' => $cat_slug
)
)
);
$my_query = new WP_Query($my_args);
while ($my_query->have_posts()) {
$my_query->the_post();
// do the usual thing
}
Related Posts:
- clients list using wordpress
- Find callback function for custom taxonomy metabox
- How do I add a custom post type to the Featured Content in twenty fourteen theme?
- Automatically assign a custom post to a custom taxonomy based on custom field value
- Limiting number of custom posts shown on taxonomy page
- Append taxonomy terms as class names in markup?
- How to retrieve category NAME instead of ID in a function with a taxonomy custom field?
- Insert HTML inside link in a walker
- Custom Taxonomy Permalinks Redirection
- Remove standard meta boxes from custom taxonomy
- Query taxonomy of taxonomy of custom post type
- How to rewrite url for any specific taxonomy?
- How to change permalink to include custom post type
- Add term to custom post type on draft
- Different Category system needed for the Custom Post Type
- Foreach loop returning more than one item when querying taxonomy
- Function to erase every post from a taxonomy
- Get Posts List of Current Selected Custom Taxonomy in Shortcode
- How to divide Subcategories into pages of parent category wordpress
- how to achieve this permalink abc.com/CPTName/CustomPostTypeCategorySlug/categoryname
- set object terms after some some time of published post – functions.php
- update custom taxonomy custom fields
- Check that a slug is present in the get_terms request
- Is there a way to use ‘publicly_queryable’ => false only on specific taxonomy term?
- Assigning categories to custom post types via a front-end form; only works for native post type
- CPT tags not showing when editing post
- Change Search display for Custom Post Type
- Recovering data about custom post and taxonomy types
- wordpress does not see the correct custom taxonomy hierarchy
- Post Custom & Taxonomy 404 error
- Getting a 404 on single custom post type page when using rewrite on a custom taxonomy
- Create 2-layered dropdown menus for custom taxonomy and custom post type
- Pagination fault in custom post type archive page [duplicate]
- Custom Loop for custom post type. Compare by meta_value?
- Invalid Taxonomy in template
- Custom Post Types using wrong template (index) instead of archive-{type}.php – previously worked as expected
- How do loop categories post from according in WordPress? is it impossible to solve this problem?
- How to use wp_set_object_terms depending on page ID?
- Is it possible to use a post name in a custom post slug?
- How to get the proper category in permalink with custom post type assigned to multiple categories
- Auto Generate Post Title from 2 ACF Taxonomies [closed]
- get_attached_media() on author page not working
- Remove url rewrites for registered taxonomies
- Received nothing after executing AJAX post function
- Show category ID on custom post type
- How can I auto-assign a CPT post to category in a custom taxonomy when published?
- Filtering WP_Query Dynamically on the Front-End
- What template files do I need to customise custom-category-term-links rather than fall back on archive.php?
- CPT UI change custom taxonomy url
- wp_get_post_terms on custom post type with custom taxonomies returning an empty array
- Why get_posts() not returning only selected category posts from Custom Post Type?
- Get template part using a custom taxonomy term
- How to customize a permalink (URL) structure?
- Retrieve value of a category’s custom field
- Custom Post Type / Two level deep taxonomy (cat. and subcat.) uri problem (error 404)
- Archive for custom taxonomy lists all posts instead of current taxonomy
- Genesis filterable portfolio isotope [closed]
- Adding a custom post type taxonomy template in plugin
- Get post from custom post type order by two taxonomies
- Loading custom content type from ajax results?
- Get posts by querying taxonomy and certain terms of the taxonomy?
- How to restrict users and admin from creating new taxonomy terms?
- Posts from all the categories are being displayed instead of particular category
- How to save custom taxonomy from front end post submission
- How to convert custom post type based list to a dropdown list?
- How to add a custom taxonomy to show up in a custom post type menu?
- Overriding taxonomy and custom post type
- Get next and previous 3 posts in a term in single post page
- wp_query check if integer exists in custom field’s array
- Customize Query for post
- Custom Post Type with Templates using Meta Boxes?
- Custom post type templating problem
- Correct classes for WordPress menu items
- Wrong request query on cpt and tax
- How can I see a list of my Custom Post Types of the last term I was in?
- Custom Taxonomies not appearing in Admin
- Custom Post hierarchical to custom taxonomy
- Custom Taxonomy Navigation, with current menu items for children?
- Search Custom Post Type & Taxonomies
- Getting a PHP Notice when using Pods with WPML [closed]
- Deleting Custom Taxonomy Term only increments tag_ID
- Can I list a custom post type within another custom post type in the admin area?
- Custom Post Type doesn’t show Draft and Trash Options
- Conditional Statement custom post type category
- Multiple portfolios and single item in two of them (ideas?)
- Change custom post type slug from plugin options
- Custom Post Type With Categories
- Get custom post type list for every category shortcode
- Loop custom taxonomy to get lists of cutom post types?
- Custom post type structure for posts with multiple child posts
- Get custom taxonomies from multiple posts
- Hierarchical Custom Post Types in Array
- Making certain categories of CPT not publicly queryable
- Pagination for Custom Taxonomy Page [duplicate]
- How can I make a custom post type sticky?
- Missing Posts in Custom Taxonomy List
- Custom Post Type permalink shows wrong page: homepage/index.php
- Search / Filter posts on Title/Content OR Tags
- using $wpdb to get custom post type with term
- Custom Post Type Taxonomy Filters