If your category is custom taxonomy you’ll have to use tax_query in you WP_Query().
See: https://codex.wordpress.org/Class_Reference/WP_Query#Taxonomy_Parameters
I guess it’s a typo that you have &catid instead of $catid.
Edit:
Something like:
$args_query = array(
'posts_per_page' => 6,
'post_type' => 'video',
'tax_query' => array(
array(
'taxonomy' => $taxonomy,
'field' => 'term_id',
'terms' => $catid
)
)
);
Note: Check for typos since I have not tried or tested this.
Related Posts:
- Where, When, & How to Properly Flush Rewrite Rules Within the Scope of a Plugin?
- How do I change the author of a custom post type?
- Custom Post Type Plugin: Where Do I Put The Template?
- Creating a Custom Post Type as a Plugin? Why?
- Creating a custom public user page
- Is flush_rewrite_rules necessary when creating a custom post type? Why?
- Remove Slug from Custom Post Type results in 404
- Unable to filter on field on edit.php page
- Insert slider (Custom Post Type) into pages
- How do I create a custom post type for a training CMS in WordPress?
- Custom Taxonomy and tax_query Issue?
- Using posts and postmeta table to store custom Address Book Plugin data
- template_redirect not working, apparently for no reason
- Custom role capabilities to administrator not taking effect (no plugin)
- Hierarchical or Non-hierarchical Custom Post Type in Real World Example
- How to append element after thumbnail
- handling csv data with a custom post type
- Custom Post Type | Fatal Error on register_post_type()
- Custom Post Type rewrite
- Admin notice not displaying
- Detect where custom post type is declared
- Insert Multiple Post with Same Publish Button
- get_object_taxonomies() returns empty array for custom post type
- custom post type not showing in menu
- Adding a custom post type taxonomy template in plugin
- Plugin: register custom post types, child ready and performance best practices
- How to add a custom taxonomy to show up in a custom post type menu?
- Add custom ID to CPT posts only create not update
- Add custom post type as submenu [closed]
- Getting meta in editor plugin, and event triggering issue
- Unable to get Custom Plugin Options data
- What is the best practice for displaying my plugin content in themes?
- How to use TinyMCE Editor for one of my custom post meta field?
- Deleting taxonomy terms and relationships on a custom post_type when a user is deleted
- ACF in wordpress
- Theme independent plugin by using default page template
- How to add and clear custom post types and taxonomies in a plugin? Considerations for existing data
- post_parent in custom post type
- Dynamically insert code to custom post type loop
- How do I add custom HTML to the content of an archive page’s posts?
- Unable to format dates to put in event calendar
- How to add query args to links to CPT admin submenu
- Dynamic assign a custom template to custom post type posts
- How to add and display custom content that is not a post
- Custom post type in Custom widget – $listItem
- Problem with adding custom post type meta to header by plugin
- Creating alternate meta box context locations
- Generating and downloading files with WP API
- Convert Custom Table Data Based Plugin To Be Searchable
- Modify a plugin function output from another plugin
- Custom rewrite rules for /pastissues/%category%-%postname%.html
- Limiting Amount of Posts in a Custom Post Type again
- Limit Amount of Pages users can create in Custom Post Types
- Wp Meta Query does not work while simple Query Works
- Auto update publish date of CPT Post if default post custom field value match to cpt post CF Value
- Custom Endpoint For Specific Custom Post Type
- Why are custom taxonomies only appearing on the edit page of one of these types, but not the other?
- How to add a default predefined thumbnail when creating a brand new post?
- How can i display a taxonomy? i have created a plugin and then a custom type. and a taxonomy , also i have register it
- Plugin Development using classes – Public & Private Callbacks
- URL issue retrieving Custom Post Types using Backbone JS API
- WordPress Custom Post Loop
- Create a post automatically if search result has zero results
- Unable to gather Image URL from Custom Post Type’s; Custom Meta Field
- Correct way adding External classes to Custom Post type and output their methods to template
- ‘Simple’ Reservation System
- Shortcode and get_template_part
- dynamic vue widget inside custom post
- Custom Post Type Front Page Gives 404
- Show Post columns to specific users on condition
- Custom Post type plugin is using theme single.php and style.css
- get_permalink() of page the enclosing page not posts
- Run query on specific admin options page and send results to select field in another function
- Not able to get all the actions (View, Edit, Quick Edit, Trash), and not able to delete post in custom post type
- how to allow subscriber to add/edit/delete custom post type
- call a function when insert and update a custom post type
- Facing some Issues on Two Parts Custom Post Type Taxonomy Names
- Error in WP Query. If variable is empty it is displaying previous post value
- Not Able to Get Custom Post Type in Single and Single-custom-post-type
- Remove Custom Capability
- Can I override the permalink/slug on creation
- call_user_func_array() error after moving to another server
- Custom post type not being pulled in widget
- Issue on Counting CPT’s Under Taxonomy Term
- Custom Taxonomy Showing in WP Menu
- Issue on Adding Taxonomy to Custom Post Type Using Function
- Add Excerpt On Quicksand Plugin
- Custom Post Types in plugins?
- How to apply order on custom taxonomy and custom meta key on custom post type
- Inserting into WP DB
- Hide custom post type and use its slug in new plugin menu
- Don’t display post if post has empty body
- Create settings page to enable or disable CPT
- Custom post type template not loading from plugin
- I am having a problem with fetching product data in the Gutenberg block editor
- Add block templates (html) via plugin for custom post type
- how can i call archive-{post type}.php template from my custom plugins to my theams?
- REST API callback function is not called
- Display box in sidebar of custom post type
- Add taxonomy or category slug to custom post types URL