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
- WordPress converting ‘ to ’ and – to –?
- Unable to create categories and tags for posts in wordpress multisite
- How to Get Position of a Post from a category and tag
- Dynamically load posts based on category
- How to run select query of post with category and tags?
- Get Categories & Posts With Type Article
- My post permalinks are always the same
- Display new posts categories in separated divs
- Querying posts from current category, using a variable as array argument
- Add Categories To Custom Post
- Show all posts from the tags without having to set all of them
- post categories – how to show only categories with a specific parent id
- Creating a “category” of featured posts
- Is it possible to remove actual post pages in wordpress but keep them in categories
- How do I make it so that new posts within a certain category go into a certain page?
- Permalink base only for posts
- Find post tags words in post content and link them to tag URLs
- Need help with hiding an image within a post in a category
- Query posts from newest category
- Change the URL of posts by category
- Nothing appears using get_the_excerpt() in category.php
- How to give priority to page than to posts permalink structure?
- WordPress not showing recent posts
- Append a random string to a post permalink
- Add new post only in assigned category
- Display Posts by Categories
- Post & Category Archives URL structure
- How to get post count including nested categories
- Fixing the WP Post Object for Custom Route
- Changing the Category for all posts of an Author
- List Authors For Current Category
- post_name is not stored until post is published… where should I store my slug until it goes live then?
- How to filter out post from a category not its subcategory in wordpress dashboard
- Static text above category page
- List posts of assigned categories in list of all categories on single.php
- Ajax – Post Categories and Load More
- All my posts don’t show, only the headline is displayed on the homepage
- Add category information beneath post?
- Need help writing loop to display posts by categories in separate divs
- Edit Posts Page but not category specific pages?
- Add category selection to function request
- How to change post template via url?
- Custom plugin to get related posts by category
- Show only top 3 posts from 3 categories in order on home page
- Hide Certain Tags on Single Post Page
- Unable to uncheck a category in a post
- Query post category & remove any post id
- How can I display a specific number of post in a category via a url
- Admin Post List Only Show One Category
- how to chang preview of list of articles of one category?
- Posts in Page – How to customize the URL?
- Next/Prev category post in same button
- Display only current page -> posts tags in page
- Multiple Post Repeat for Related Post Loop by Category
- Posts tagged with a-new-tag does not appear
- Show Post number of specific Category
- Page Type with Category Link
- Is there a way to change the complete URL of the blog post for a redirecting tracking link?
- WordPress with static posts page and custom permalink structure doesn’t find posts with numeric permalinks
- Hide categories from showing above a Post
- Add category attribute to custom recent post shortcode
- Use a custom post URL that is outside the blog root directory
- Can’t seem to replicate permalink structure for localhost development site
- Newly created category does not show category
- Show category post with excerpt text
- Post of a specific category – not to be seen in paging previous/next post
- How to show main category related to that post
- WordPress rewrite url help needed
- Permalink of some posts change
- Same sidebar in all posts as in the category