I got fix this problem with:
add_rewrite_rule('blog/([^/]*)/page/([0-9]+)?/?$', 'index.php?post_type=blog&blogs_tax=$matches[1]&paged=$matches[2]', 'top');
In functions.php, after register_post_type
.
Very important: You must flush rules. It is easy to do changing the permalink.
Related Posts:
- The default code for “posts_nav_link” on category.php isn’t working
- pagination 404 error, same slug home and categories
- How can I create a category landing page followed by pages of posts?
- How do I get the category URL from get_the_category?
- How do I use the same post slug for different Categories?
- Rewrite rule page url with category
- Display all posts from all categories with pagination
- Create terms when registering taxonomy?
- Using same slug name for a page and category
- Add category to custom post type automatically, using category slug
- Echo one category as title when post has multiple categories?
- Page navigation within a category
- I use same slug name for category and page
- Pagination on child category returns 404
- Divi change project slug based on category
- Removing the number in a category slug
- Disable pagination only for specific category
- Add custom taxonomy terms to WordPress menu dynamically & append #slug to url
- Archive pagination causing 404 with permalinks structure
- Custom category template pagination problem
- How can i call an article from each category and still paginate properly?
- Plural Category Base Slug On Category Archive Page
- Show posts of category in a page
- Return category slug / title from category ID
- Category slug $_SERVER[‘REQUEST_URI’];
- 403 forbidden on one page only
- Get the name an the description of a link category
- Pagination Not Working on Category.php page
- WooCommerce duplicate sub categories and product slugs
- 3 Columns, 3 Categories, One Archive, and Pagination
- Broken category pagination
- Need to pull parent category and slug – only pulling daughter category
- Enter a variable in the ‘category_name’ parameter
- Displaying a full post instead of a slug per category?
- wordpress sub-category ( lowercase letters + non-latin characters ) = 404
- Pagination not visible on woocommerce’s category page
- Pagination is not working properly in Product Category/Tag pages
- Paging not working in category.php
- How do I toggle pagination on/off in search results and category listings via a link?
- Custom post and category template pagination problem
- How to make the link to the category for a post go to corresponding page number in archive?
- category pagination got broken suddenly
- Category template with pagination returns 404 on next pages
- how to get full category path including parent and subcategories
- How to display numbered pages in a category
- WordPress alphabetical A-Z custom post type post result display
- How to show 1-5 of X Total Results
- Use the category name instead of category slug in permalinks
- Pagination on category.php and tag.php not working
- Trying to get variables in hacked category dropdown
- How to do paging in the loop?
- category__not_in and id values from variable
- Pagination for query_posts();
- Having problems with paging
- How do I add a tag slug to a category URL to filter posts?
- Change of category structure will cause two kinds of URLs for one post
- Change slug of Standard wp Post category
- How to remove the category from post slug
- Ordering categories by slug vs. name
- Pagination breaks on child-categories, works fine on parent-category
- Pagination for a category
- Can I define multiple paginations on a single page?
- Echo Category Nicename
- Conditional category query breaking?
- How do I remove pagination from just some Categories?
- Problem with pagination block in Gutenberg
- Show the number of the post
- A different permalink structure for different categories
- OK to redirect the root WordPress category slug?
- Remove WP Core canonical for category pagination
- Include a page’s “category” in its URL
- Using the slug of a custom post category as prefix for the underlying custom post slugs
- Pagination does not work with query_posts()
- “Next posts” of a category do not call category.php
- WordPress pagination based on category
- How to add Pagination to foreach loop to page
- How to auto update post title and slug with category name when post status is updated
- Removin /page/2 from pagination
- WordPress pagination not working because of subcategory
- Loop within category’s posts
- Show only one of the categories of a post in the breadcrumb?
- hierarchical taxonomy in permalinks? using same slug
- Category foreach Paging
- woocommerce – products by category slug? [closed]
- WordPress Numeric Pagination with Query String [duplicate]
- date.php shows all posts. how to fix it?
- Category slug in in loop always the same?
- Displaying posts by year
- wordpress category.php query for featured news item, broken pagination and repeating posts
- Paginating a list of all posts collected by category titles
- Paginate WordPress Category Pages
- Using pagination with multiple loops causes it to break
- How can I get rid of the the category suffix–NOT “prefix” (i.e. foo-1, foo-2, etc)
- Showing one post from each category, paged?
- Why Pagination is not working on Category.php
- Category pagination not working in category.php please help me
- Link to page in category
- How to get category slug link? ( include parent categories)
- How can I implement pagination on custom category page?
- How to add custom prefix before category base for category page URL?