I was messing with my permalinks today for the same reason. And i ended up with a solution that worked great.
You have to change your custom permalink structure to:
/%category%/%postname%/
In the category base field just put a period mark:
.
and your permalinks will display in this form:
CATEGORY PAGE mysite.com/blog/category-name/ POST PAGE mysite.com/blog/category-name/post-name/
I don’t think it works for tags pages though. I tried putting “.” in the tag base field the permalink is correct like:
TAG PAGE mysite.com/blog/tag-name/
but the page returns error 404. So i guess it doesn’t see the page without the default “tag” tag base.
Related Posts:
- What Defines What Category A Post Picks (if in multiple)
- Can I show category name in url for only one of my categories?
- Use category base slug in posts’ permalink
- How to control which category will be picked for the slug of a post?
- Post in Multiple Categories to stay in current category (permalink, next previous post link)
- Permalink Settings: optional settings doesn’t apply to editor
- Should I use posts or pages in this scenario?
- WP_Query: Mixing category__in and tag__in together
- How can I hide tags on a child-category page, if that tag has not been used?
- How to get post with associated categories and tags names instead of ids with rest api?
- Having pages after specifying post_type post
- In what context should Categories and Tags be used
- Categories Listing and Highlighting current category item
- Rewriting blog permalinks
- Remove subcategory slug from url
- Is there a way to categorize a list posts all at once?
- How to get tags when using publish_post
- How do you change the permalink for posts for a single category?
- Does having category name in permalinks affect SEO when having a post in multiple categories?
- How to add a ‘News’ section to specific posts in WordPress
- How to 301 redirect from url with post id to permalink with post name (slug)?
- Why do I have categories with duplicate slugs?
- show only one category and filter by tag
- Set multi posts random categories and tags
- Point users to a specific url directory for some posts
- Precedence of page permalinks over woocommerce product category links?
- Make assigning post to a specific category equivalent to assigning it to all categories
- How to display subcategory articles in the category view?
- How can I fixe the article title problem?
- How to remove category and other tags from posts page
- Where is the old post permalink slug stored?
- Manipulate post category after time
- How to get the url to tag & category base set by the user?
- Categories box not showing on post edit pages
- List only child categories a post is in, of a specific parent category
- is there a better way of combining this?
- Root level category, tag, author and archive pages to work
- Some posts returning 404 instead of displaying post
- wp_list_categories link to first post of category instead of calling taxonomy template
- get_permalink executes link without https
- How to Add ‘Post Categories’ to the Dashboard Sidebar
- How only display all post related to category
- Create pretty permalink for a post knowing the permalink structure
- Link post permalinks to subdirectory /post
- Add category to all post by using sql query?
- Remove permalink from images when inserting into post
- Remove the Edit button in posts for permalinks on certain user roles? WP 3.3
- How to prevent WordPress from updating the modified time?
- Full Width Main Post
- Plain permalinks not working!
- Changing permalink from /postname/ to category/postname/
- Get attachments for posts that belongs to a specific category
- How can I setup a relationship using categories in WordPress?
- Related posts by category not working right
- How to add tags (custom taxonomy) to post class css?
- hiding permalink in admin if the user is subscriber
- How to Mysql select a list of posts with meta_values AND all relevant categories?
- get_the_category listing in hierarchial order
- Custom permalink for each post
- Post is in descendant category not working in home.php
- How to get posts ordered by using their categories?
- Hide parts of the post content after typing it’s name or searching it by category
- SQL Bulk Move old posts by one author to another category
- load more posts by category
- Display Related Posts by Category in Random
- How to show beneath posts the full category path?
- Changing permalink of WordPress
- How do I keep raw HTML in my RSS feed and not lose my paragraph breaks?
- Set Default Post as Parent Child (Nested) Relation
- Only the most recent post is showing on my category page (working on localhost, not live site)
- ACF date picker to trigger category change
- Get category slug of the Parent category of a Product
- exclude particular category in api
- Make categories appear random
- WP posts using index.php instead of single.php
- Sync All Post Type Tag
- Excluding tag Link from html tags in Post content
- Get posts from category from custom query
- Can I Paginate Post after every 25 tag?
- How to show posts ordered by random [duplicate]
- How to Get Position of a Post from a category and tag
- Display new posts categories in separated divs
- Add Categories To Custom Post
- Permalink base only for posts
- Query posts from newest category
- Display Posts by Categories
- post_name is not stored until post is published… where should I store my slug until it goes live then?
- Ajax – Post Categories and Load More
- Edit Posts Page but not category specific pages?
- How to organise post by category and date
- Show post if in category
- How to display custom content in post with category XXX
- Displaying categories items among posts
- Displaying different posts Via wp_list_categories()
- Should new posts already have tags?
- retrieve post slug by post_tags taxonomy
- Display ONLY Latest Post From Several Categories
- Show all posts in category
- Export Posts Without Categories In An XML File
- Sort Posts Alphabetically Based on Specific Category (Divi)