-
Change Category base to
.
(dot). Nobody knows this trick will work in the future, but there is no easy way to remove/category/
from the URL. So, it’s better to google for a plugin (here is one of them). Yoast’s SEO plugin also is able do the same. -
Set Permalink structure to
/blog/%category%/%postname%/
.
Then:
the_posts_pagination();
This function does not require any arguments in your case.
If you really want to use paginate_links()
, use the right format
argument value because pretty permalinks were already set: page/%#%/
rather than ?paged=%#%
:
echo paginate_links( array('format' => 'page/%#%/') );
See Pagination functions for more.
Related Posts:
- Custom permalink structure leads to be 404 on pagination
- How to get permalinks with category base working with sub-categories
- Archive pagination causing 404 with permalinks structure
- New categories are now going to 404s
- WordPress subcategories return 404 in custom template
- Category url generate 404 error
- Custom Permalink with child categories creating 404
- Pagination breaks on child-categories, works fine on parent-category
- Need help with major category and permalink re-organization
- Subcategory Page 404ing
- Custom permalink /%category%/%postname%/ produces 404 on each post
- Remove parent category from permalink? Basically only have the child category?
- Category archive by year with permalink support /category/YYYY
- Add a URL prefix to permalinks of one category of posts only
- Catch 404 after changing permalink structure from /%postname%/ to /%category%/%postname%/
- Filtering categories in the permalink structure
- 404 Error On Category and Tags Pages
- Allow duplicate permalink slugs for posts in different categories
- Force WordPress to Show Pages Instead of Category
- How do I use the same post slug for different Categories?
- How to remove category from wordpress url?
- Multiple post categories – single permalink
- How to create a custom url for a category [closed]
- How to change the category in URL for posts in multiple categories?
- How to exclude uncategorized from permalink structure /%category%/%postname%/
- How to get the url to tag & category base set by the user?
- 404 error on subcategory pages
- Categories’ hierarchy in URL
- Changing the category permalink structure
- How to Include the Parent and Child Category in the Permalink if the Post is Added to Both
- Category links suddenly started giving 404 errors
- Best and Cleanest way to remove /category/ from category permalinks? [duplicate]
- Exclude subcategories from the url
- How to display only the parent category in the permalink
- Root level category, tag, author and archive pages to work
- Categories and Tags returning 404 on the sidebar when using ugly permalinks
- Permalinks – Different structures for different categories?
- Plural Category Base Slug On Category Archive Page
- custom permalinks for category archive ( custom base and no parent slug )
- WooCommerce change category url and product base
- Removing category base form links messes up the parent-child behavior
- Duplicate Category and Page URL loads Category instead of the Page
- Custom Category/Subcategory structure
- Remove Parent Category from Child Category URL
- Best way to programmatically link to multiple categories (union/intersection) [closed]
- Default category link for a custom category is a broken link
- Categories not working – 404 Not found error
- How to set up Author archives with sub category URL
- Allow dot in wordpress permalinks (only for categories)
- wordpress wp_list_categories
- How to get category URL with the slug?
- How to filter posts by format and category via url?
- How to Filter categories in the permalink structure
- Specifying multiple categories in URL (permalink)?
- Possible to make a subdirectory that loops through a single category?
- Should the actual /category/ directory be 404? Is that normal WP behaviour
- force category base – archive pages work WITH & WITHOUT category base slug in url?
- How get permalink for the current category or tag?
- Add “page-a” slug to category link if user visit category link from “page-a”
- Redirect category to url with /category
- Changing permalink from /postname/ to category/postname/
- One Specific Category To Permalink
- Category being displayed without base parmalink
- wordpress sub-category ( lowercase letters + non-latin characters ) = 404
- Removing post category base giving Error 404
- Categories showing page not found
- How to disable default category linkbuilding?
- The default code for “posts_nav_link” on category.php isn’t working
- Read GET parameters in APACHE Mod Rewrite rules for WordPress categories in Posts
- Have different permalinks based on category
- Show parent category in URL of subcategory archive page
- Mod_Rewrite to show only last subcategory in URL
- Permalinks: display just one kind of wp category in the posts url
- Multiple URL’s based on category for one post
- category permalinks
- Hide uncategorized when no category set
- Remove subcategory and category with some rules from permalink
- Sub Categories Keep Redirecting to Pages With Same Slugs
- How to rewrite the post URL according to the category?
- WordPress URL Rewrite for dynamic and customized URL
- Removing subcategories from permalinks [duplicate]
- A single category with a specific permalink structure differing from the standard set for the rest of the site
- Older entries link within category page
- How can you change the permalink for pages?
- Get category URL knowing it’s id
- Remove the parent name from permalink
- Redirect single article permalink to paginated category page
- How to add a post without assigning to a category?
- How to get Next/previous_post_link to go through articles in top parent category
- Hide the word ‘category’ from my permalinks
- WordPress alphabetical A-Z custom post type post result display
- Hierarchical permalink structure for posts showing categories and sub-categories
- Use the category name instead of category slug in permalinks
- How to Link to Most Recent Custom Post of Same Term
- Function to automatically rename the base category permalink
- Cannon see subcategory in permalink
- Redirect Changed Permalink on wordpress
- How to remove one specific category (uncategorized) from post permalinks
- How do I retrieve the category ID (ugly permalinks) in my sub-navigation menu?
- Custom page category taxonomy 404