Why are you going to functions.php? Go to Settings > Permalinks and use something/%category% as your Category base
Related 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
- Create terms when registering taxonomy?
- How to create non-unique sub-category slugs?
- Rewrite category slug
- Using same slug name for a page and category
- Add category to custom post type automatically, using category slug
- I use same slug name for category and page
- Divi change project slug based on category
- Removing the number in a category slug
- Add custom taxonomy terms to WordPress menu dynamically & append #slug to url
- Plural Category Base Slug On Category Archive Page
- Return category slug / title from category ID
- Duplicate Category and Page URL loads Category instead of the Page
- Category slug $_SERVER[‘REQUEST_URI’];
- 403 forbidden on one page only
- Get the name an the description of a link category
- Using a portfolio_category slug in wordpress URL
- Categories vs. Page Site Organization
- WooCommerce duplicate sub categories and product slugs
- Need to pull parent category and slug – only pulling daughter category
- Pagination for category slug returns 404 when page >= 2
- Displaying a full post instead of a slug per category?
- wordpress sub-category ( lowercase letters + non-latin characters ) = 404
- The default code for “posts_nav_link” on category.php isn’t working
- Mod_Rewrite to show only last subcategory in URL
- Get posts from specific taxonomy term
- how to get full category path including parent and subcategories
- Automatically redirect a page to a category that share the same slug
- Use the category name instead of category slug in permalinks
- 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
- How to remove the category from post slug
- Ordering categories by slug vs. name
- Echo Category Nicename
- pagination 404 error, same slug home and categories
- Different post slug based on archive
- A different permalink structure for different categories
- OK to redirect the root WordPress category slug?
- How Can I Use Equal And Question Mark In Category Slug?
- How to remove category name for only one category?
- How to prevent WordPress from redirecting single page to prefixed category archive with same name?
- Include a page’s “category” in its URL
- Using the slug of a custom post category as prefix for the underlying custom post slugs
- Change the full slug for a specific category?
- Get category from slug list
- How to auto update post title and slug with category name when post status is updated
- Hide category name using mod_rewrite
- Show only one of the categories of a post in the breadcrumb?
- hierarchical taxonomy in permalinks? using same slug
- woocommerce – products by category slug? [closed]
- Category slug in in loop always the same?
- How can I get rid of the the category suffix–NOT “prefix” (i.e. foo-1, foo-2, etc)
- How to get category slug link? ( include parent categories)
- How to add custom prefix before category base for category page URL?
- category id (term_id) in url instead of slug
- Using same term for slug and category
- How to add featured image for category (without a plugin)?
- Category archive by year with permalink support /category/YYYY
- Default WP Gallery – show only galleries of a certain category
- Exclude sub category posts from category display
- Action hooks returning old category instead of new category
- Category checkboxes in upload modal
- How to mass-insert categories?
- Why is get_the_category() saying that I have two categories?
- Custom sidebar on category pages
- How to display only posts assigned to a particular, isolated, subcategory
- How to display all the categories a post is in
- Why don’t posts show up in my categories on the frontend?
- Should I use “Categories ” or “Pages” for a WordPress Static Site (A non blog site)?
- How do I query_posts in cat=1 AND not in cat=2
- Display single category name in woocommerce loop
- Use premade array as categories in wp_query?
- How do I get category and page ID’s?
- Category images are not displaying in WordPress
- How do you use the featured image of the most recent post in a category as the background image
- Change RSS format for specific categories
- List post only under the category, exclude child category content
- Detect category choice for posts with multiple categories
- Redirect Problems with Archive Page and GET variables
- Different size video display for category page (smaller) & detail page (larger)
- Adding tinymce to Custom Field boxes on Category edit page
- wp_list_categories : how do I sort by ID when IDs are not sequential
- Remove “Category:” from Post meta
- restrict category to only logged in User
- Dynamically creating content on custom URL without getting 404
- Category foreach Paging
- One category not displaying template updates
- How to display only category of blog without custom code?
- How to create a category or tag available exclusively to the admins and not to the users?
- wordpress category.php query for featured news item, broken pagination and repeating posts
- Form Value of drop down category + Translation of ‘show option none’
- Echo class depending on Parent category
- Query pages by category
- How to display posts by author in a separate page, other than author.php?
- One color to category link depending on category ID
- Show subcategories and hide posts or show posts if not exists subcategories
- Fetch Post Category
- How do we ReWrite HTACCESS to point a cat/subcat Product URL, to Cat/ only?
