I found a solution here: 404 on category.php pagination
So, to fix my issue I just needed to add these custom rewrite rules to functions.php:
add_action( 'init', 'wpa58471_category_base' );
function wpa58471_category_base() {
add_rewrite_rule(
'blog/([^/]+)/page/(\d+)/?$',
'index.php?category_name=$matches[1]&paged=$matches[2]',
'top'
);
add_rewrite_rule(
'blog/([^/]+)/(feed|rdf|rss|rss2|atom)/?$',
'index.php?category_name=$matches[1]&feed=$matches[2]',
'top'
);
}
Now, all blog pages work, including main blog page, archives, categories, and single posts, using the permalink custom structure of /blog/%category/%postname%
**ALSO, if using Yoast, make sure you “Keep” the category base (this is the default under advanced->permalinks)
Related Posts:
- Filtering categories in the permalink structure
- Multiple post categories – single permalink
- Categories’ hierarchy in URL
- Changing the category permalink structure
- Exclude subcategories from the url
- How to display only the parent category in the permalink
- Plural Category Base Slug On Category Archive Page
- How to set up Author archives with sub category URL
- How to get category URL with the slug?
- Add “page-a” slug to category link if user visit category link from “page-a”
- How do I get rid of “category” from my URL structure?
- One Specific Category To Permalink
- Read GET parameters in APACHE Mod Rewrite rules for WordPress categories in Posts
- Permalinks: display just one kind of wp category in the posts url
- Multiple URL’s based on category for one post
- Remove subcategory and category with some rules from permalink
- WordPress URL Rewrite for dynamic and customized URL
- Category URL Management
- Using custom structure prefix showing 404 for sub-categories
- A different permalink structure for different categories
- 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
- Remove “category” from permalink with add_rewrite_rule
- WordPress Category url redirects to subdomain
- Create monthly archive for parent category
- hierarchical taxonomy in permalinks? using same slug
- Custom EndPoint not working when strip child category in URL
- Remove “?category=” in the URL wordpress ajax filter work for category
- Remove parent category from permalink? Basically only have the child category?
- Custom permalink structure leads to be 404 on pagination
- Posts URL structure like site.com/category/the-post-title
- How to get permalinks with category base working with sub-categories
- 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%/
- 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?
- How to create a custom url for a category [closed]
- Preventing index.php?category_name=something from redirecting
- Add forward slash on categories url (serve one version of a url)
- how to use a different domain/subdomain for authors/catagories on single site?
- How to change the category in URL for posts in multiple categories?
- How to exclude uncategorized from permalink structure /%category%/%postname%/
- Custom post types with their own permalink structure
- How to get the url to tag & category base set by the user?
- 404 error on subcategory pages
- Rewrite category wordpress
- Category and tag with same name
- Rewrite category slug
- How to? Redirect /category/sci-fi/ to /category/scifi/?
- 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]
- Root level category, tag, author and archive pages to work
- Combine Multiple Categories Into One URL Slug
- Categories and Tags returning 404 on the sidebar when using ugly permalinks
- Archive pagination causing 404 with permalinks structure
- Permalinks – Different structures for different categories?
- 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
- New categories are now going to 404s
- Duplicate Category and Page URL loads Category instead of the Page
- Custom Category/Subcategory structure
- One WP install, I need to map a custom domain name to each category
- How to show in search results posts with a particular tag in a particular category?
- 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
- Allow dot in wordpress permalinks (only for categories)
- Get the name an the description of a link category
- wordpress wp_list_categories
- 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?
- Linking products to categories
- WordPress subcategories return 404 in custom template
- How get permalink for the current category or tag?
- Redirect category to url with /category
- Changing permalink from /postname/ to category/postname/
- Rewrite a category
- Category being displayed without base parmalink
- How to change category and year archive permalinks/rewrite rules?
- wordpress sub-category ( lowercase letters + non-latin characters ) = 404
- Removing post category base giving Error 404
- Categories showing page not found
- Shortcodes not working in category or tag description
- How to disable default category linkbuilding?
- The default code for “posts_nav_link” on category.php isn’t working
- Place category Base URL at the end
- Have different permalinks based on category
- Show parent category in URL of subcategory archive page
- Add /category/ to an author archive page
- Mod_Rewrite to show only last subcategory in URL
- Same base for category and post
- How to display post type and category links in foreach WordPress code
- category permalinks