-
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
- Catch 404 after changing permalink structure from /%postname%/ to /%category%/%postname%/
- Filtering categories in the permalink structure
- 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?
- Categories’ hierarchy in URL
- How to Include the Parent and Child Category in the Permalink if the Post is Added to Both
- Best and Cleanest way to remove /category/ from category permalinks? [duplicate]
- Root level category, tag, author and archive pages to work
- Categories and Tags returning 404 on the sidebar when using ugly permalinks
- Plural Category Base Slug On Category Archive Page
- WooCommerce change category url and product base
- Removing category base form links messes up the parent-child behavior
- Remove Parent Category from Child Category URL
- How to set up Author archives with sub category URL
- Allow dot in wordpress permalinks (only for categories)
- How to Filter categories in the permalink structure
- Specifying multiple categories in URL (permalink)?
- Should the actual /category/ directory be 404? Is that normal WP behaviour
- 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
- Permalinks: display just one kind of wp category in the posts url
- Multiple URL’s based on category for one post
- category permalinks
- Sub Categories Keep Redirecting to Pages With Same Slugs
- How to rewrite the post URL according to the category?
- Removing subcategories from permalinks [duplicate]
- A single category with a specific permalink structure differing from the standard set for the rest of the site
- Remove the parent name from permalink
- Redirect single article permalink to paginated category page
- How to add a post without assigning to a category?
- 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
- Function to automatically rename the base category permalink
- Cannon see subcategory in permalink
- Redirect Changed Permalink on wordpress
- How do I change the category permalink structure?
- Category page returns 404 error
- Redirect year month day postname permalink structure to category postname structure
- category link not working for a specific slug, works for others
- Advanced permalinks structure
- Is the part “category” fixed to an URL to an archive or post?
- prefix to post permalinks without affecting category permas
- Category URL Management
- Subcategory Page URL to Display Only Posts from that Subcategory?
- How to use category slug with a regular page
- Using custom structure prefix showing 404 for sub-categories
- pagination 404 error, same slug home and categories
- How to add tags under categories
- How to remove category name for only one category?
- How to set the same base url for two different taxonomies?
- Subcategories randomly not working after page/post/category edit in wordpress. Fix: saving permalinks twice
- Get multiple category names from permalink
- Get category base permalink
- Category URL’s 404 after setting category base to ‘.’
- Include a page’s “category” in its URL
- Wrong category in URLs accepted like the correct one
- Remove “category” from permalink with add_rewrite_rule
- Remove base category gives 404 error
- Change Category Base For Custom Post Type or Posts Page
- When category name and title are the same … WP will select archive.php instead of single.php
- WordPress Category url redirects to subdomain
- WordPress pagination not working because of subcategory
- same permalink for parent category and child category
- Catch 404 after changing permalink structure from /%postname%/ to /%category%/%postname%/
- /blog/ permalink prefix causes category pages to 404
- Create monthly archive for parent category
- Page Type with Category Link
- htaccess redirect for all categories converted to tags now showing 404
- Most efficient use of custom taxonomies, categories, and pages
- Removing short versions of category archive URL
- Change next_post and previous_link to navigate throught parent categories only
- Using pagination with multiple loops causes it to break
- how wordpress generates permalinks as /%category%/%post%/
- WordPress category gives 404 after moving to a different domain
- Create custom Perma link
- Multiple Parent Category URLs
- Use same wordpress category base and tags as the prefix as the post permalink
- WordPress how to remove parent slug from category URLs
- How to remove the category from the url only for a specific category of articles on wordpress