Please check if any of the solutions work for you. There are a few ways we can try to achieve this.
Through WP Permalinks
Go to Settings >> Permalinks and select Custom and enter: /%category%/%postname%/
Next set your Category Base to .
Through Yoast Plugin
Go to Yoast SEO
Select advanced
Click on the tab permalinks at the top
Check Strip the category base (usually /category/) from the category URL
Related Posts:
- Preventing index.php?category_name=something from redirecting
- How to set up Author archives with sub category URL
- How to change category and year archive permalinks/rewrite rules?
- Custom url structure – pages under a custom post type
- Remove “category” from permalink with add_rewrite_rule
- wordpress category rewrite rule with pagination
- Is There a Difference Between Taxonomies and Categories?
- Check if a post is in any child category of a parent category
- How to export and import taxonomies (category, tag and/or custom taxonomy) and their terms
- Posts URL structure like site.com/category/the-post-title
- get_terms vs. get_categories: does it matter?
- Woocommerce get category image full size
- Order get_terms() By Custom Field
- Control term order on a per-post basis
- Filtering categories in the permalink structure
- Fixing category count
- Rewrite rule page url with category
- Multiple post categories – single permalink
- How can I get category ID by category name?
- get_terms name__like list categories according to letter
- Add forward slash on categories url (serve one version of a url)
- Elegant way to add parent categories?
- How can I select a primary category?
- how to use a different domain/subdomain for authors/catagories on single site?
- Custom post types with their own permalink structure
- Programmatically create product category and add thumbnail in woocommerce
- How to order the get_categories result
- Rewrite category wordpress
- Send an email when custom post type category is changed
- Categories’ hierarchy in URL
- Are Categories, Tags and Custom Taxonomies any different in regards to SEO?
- Category and tag with same name
- Rewrite category slug
- Excluding posts from a category but only if they’re not in multiple categories
- Changing the category permalink structure
- How to? Redirect /category/sci-fi/ to /category/scifi/?
- Update term count using a callback function
- Get terms that are associated with products from current category
- Exclude subcategories from the url
- How to display only the parent category in the permalink
- Does WordPress Offer a Way to Find All of the Categories that Don’t Have Children?
- Add custom taxonomy terms to WordPress menu dynamically & append #slug to url
- Removed slug from CPT, now How/where do I hook the filter to the taxonomy term archive pages link?
- Getting the sub category
- Use get_term_children to get the sub category of a parent category for the current post
- Action hooks returning old category instead of new category
- Update wordpress post terms programatically
- Plural Category Base Slug On Category Archive Page
- Display empty taxonomy terms with get_terms()
- Get a list of Terms for a specific category
- When to use ‘get_category_by_path’ vs. ‘get_term_by’ to get category object from `get_query_var( ‘category_name’ )`?
- 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?
- Default category link for a custom category is a broken link
- Categories not working – 404 Not found error
- Viewing category pages without the word ‘category’ in URL
- List Terms in Category
- What’s the Simplest Way to Override/Rewrite the %category% Permalink Structure Tag?
- How do I get a list of all categories that a given user has written blog posts for?
- Set post categories to include parents when setting child category
- Should the actual /category/ directory be 404? Is that normal WP behaviour
- How to get data about category in category.php
- force category base – archive pages work WITH & WITHOUT category base slug in url?
- Limit number of terms that a custom taxonomy can save per custom post type
- Add “page-a” slug to category link if user visit category link from “page-a”
- Inserting Category programmatically
- Rewrite a category
- How do I get rid of “category” from my URL structure?
- How can i insert term in a specific language of Polylang?
- One Specific Category To Permalink
- Why does the argument list_only do on Walker_Category_Checklist::start_el?
- Category archive rewrite rule to include category/subcategory?
- Read GET parameters in APACHE Mod Rewrite rules for WordPress categories in Posts
- Add /category/ to an author archive page
- Permalinks: display just one kind of wp category in the posts url
- Multiple URL’s based on category for one post
- Display Posts Loop for each parent and for each Child
- Is There a Difference Between Taxonomies and Categories?
- Remove subcategory and category with some rules from permalink
- WordPress URL Rewrite for dynamic and customized URL
- Flat category URLs but retaining hierarchy?
- Custom category URL rewriting
- Get posts from specific taxonomy term
- Get posts under a category with SQL
- Getting category URL with hyphens, not spaces
- get_terms function not returning anything
- Display custom taxonomy attached to the post on post single page
- wp_dropdown_categories not showing option as selected
- Ive got a term (get_term_by) but now I want to filter it by a category it is in?
- Get a count of how many times a term or a category is used in posts
- Get Categories Where Taxonomy Equals ‘n’
- How do I add a tag slug to a category URL to filter posts?
- Display sibling categories on category page
- Rewrite with pagination /foo/page/2/ to posts of a given category, page 2
- Count tags for a specific category
- How to Link to Most Recent Custom Post of Same Term
- SOLVED Custom Add rewrite rule and Get string
- set terms to category and subcategory
- Getting Category Children