So after many trials and errors, I found I had to create a specific rewrite rule to go into my functions.php, one that handles post type ‘videos‘ and the category (taxonomy) ‘videos_category‘:
add_filter('init', function() {
add_rewrite_rule(
'^videos/([^/]*)/([^/]*)/(\d*)?',
'index.php?videos_category=$matches[1]&p=$matches[2]&paged=$matches[3]',
'top'
);
});
I also found this plugin to be really helpful for viewing my rewrite rules:
https://wordpress.org/plugins/rewrite-rules-inspector/
Related Posts:
- custom post type paging not working past page 3
- Paginated Taxonomy Term Archive including one post per term
- WP_Query search posts by custom post type and custom taxonomy
- Order WordPress Custom Taxonomy Pages & Pagination Not Working
- Taxonomy Archive: Display only one post per term from separate custom taxonomy
- Pagination : How to remove /page/x/ after a ‘POST’ action on a form returning to page 1
- Pagination for Custom Taxonomy Page [duplicate]
- Custom taxonomy rewrite give pagination 404
- Different options per post type in WP_Query
- Foreach loop returning more than one item when querying taxonomy
- custom taxonomy pagination 404 error
- set object terms after some some time of published post – functions.php
- pagination problem listing custom post types of taxonomy in wordpress
- Custom Taxonomy – fields
- The most recent post of custom taxonomy
- Pods pagination erases my sub menu
- Values inside a custom field to determine which category posts to display
- Pagination not working on homepage
- Display all posts in a custom post type, grouped by a custom taxonomy
- Exclude a category from WP_Query
- $wp_query->queried_object->ID throws warning: Undefined property
- Custom post type archive 404’s with paginate_links
- Get Custom Taxonomy ID within loop
- Pagination throws 404 error on custom taxonomy archive pages
- Select All in Parent Category, Group by Child Category?
- get_query_var() not working in pre_get_posts
- query multiple taxonomies
- Custom Taxonomy with Custom Post Type Finds No Posts
- The Operator “NOT IN” Does Not Work In tax_query
- Custom query form submission pagination
- Custom post query by taxonomy
- Querying CPT with Two Taxonomies
- Separate Posts and Custom Post Type in Custom Taxonomy archive template
- List terms from Custom Taxonomy
- Custom Query to display posts with custom field
- Get taxonomy description based on variable
- Custom Post Type Pagination & duplicate posts
- Optimised Code for Pulling Taxonomy Posts
- Show Post Count of a Category
- Conditional to modify query results
- Is it possible to create a shortcode that will query a post based on taxonomies?
- wp_query to find posts by year and month
- WP_Query is printing out only one post when posts_per_page is set to multiple
- WP Query to displaying date and posts for that date?
- How to output wordpress custom tags separated by comma?
- Unable to get paginate_links working with a custom query [duplicate]
- Querying Term Posts in Loop
- Custom Post Type Taxonomies -Posts not showing in Category or Tag pages
- Custom Post Type Loop within Shortcode
- Fetch taxonomies by custom post type id array
- Weird problem happening with custom taxonmy when creating/updating posts
- Group custom posts by custom taxonomy names
- Can’t get order_by meta_value_num to work properly
- How can i skip same post from taxonomy term?
- Filter by custom taxonomy slug on a custom post type
- Repeating posts when paginating random posts
- Pagination on category page with custom post types
- How to add pagination to wp_query [duplicate]
- Very Slow Page – How to Optimize # of Queries?
- Display CPT posts based on specific taxonomy
- How to display selected taxonomies by their parent
- Custom Field Order by Last Name and First Name
- Pagination for custom php code
- shortcode to show custom post types by category
- get_posts of Custom Post Type AND Custom Taxonomy
- Pagination on a custom post type loop
- Query/list all terms and their custom post count
- Received nothing after executing AJAX post function
- How to make sure content doesn’t display if selection is empty
- Filtering WP_Query Dynamically on the Front-End
- Page vs Custom Post Types Differences/Issues
- Why get_posts() not returning only selected category posts from Custom Post Type?
- Archive for custom taxonomy lists all posts instead of current taxonomy
- Genesis filterable portfolio isotope [closed]
- wp_query check if integer exists in custom field’s array
- Wrong request query on cpt and tax
- Previous/Next Link by Meta Value in CPT
- Get custom post type list for every category shortcode
- Get custom taxonomies from multiple posts
- Search / Filter posts on Title/Content OR Tags
- Pagination on with query_posts in custom post type template
- WP_Query most viewed posts, in multiple Post Types, last 30 days, excluding a specific taxonomy term
- Custom-Posttype & Custom Taxonomy WP_Query
- Custom loop with multiple taxonomy queries
- Return one unique custom post type result when it shares a custom taxonomy in WP_QUERY?
- How do I move/order posts with a tag to the end?
- 404 error when navigating to a taxonomy page with Cyrillic, what’s wrong?
- Why are taxonomy terms not saving when using custom meta boxes with radio button taxonomy selectors?
- WP_Query inside foreach loop returning same value for all options when filtered using ajax
- creat filter with wp_query
- Custom WP Query on custom meta and sort by multiple meta keys value
- Woocommerce search pagination not working
- WordPress loop: Show only a Custom Post Type Taxononmy TERM
- How can I made custom taxonomies relationship?
- What’s the WP way to load remaining custom posts?
- How do you paginate a query grouped by month?
- Custom taxonomies relationship
- Categorize custom post type
- Custom post type editor with dynamic selects, one drop down populating a second second drop down not working
- Pagination issue on category.php using custom post type query