Step 15 - Permalinks WordPress Settings

Updated : 20-Mar-2023

Most people recommend using simply postname for permalinks. If you want to take this advice you can choose to set your permalinks to postname, in which case you would select the Post name option.   I think this is a great choice and may be best for most people.

However,  I don’t do that.  I do use postname, but also prefix it with the postid. In other words, I use a custom structure of /%post_id%/%postname%/

My settings look like this :

Permalinks with postid
Permalinks with postid

Why Do I Prefer PostId and Postname?

I use a custom structure of /%post_id%/%postname%/ because it removes ambiguity and in my opinion, makes the day-to-day running of the site easier.   

I don't know if it interferes with Google’s view of a URL for SEO purposes.  I don’t believe so, as I haven't tested it, but you can come to your own conclusion.

Postname Alone Can Be Ambiguous

Take the example of the Yoast website where I found a selection of blog posts with the following URLs:


The above URLs all use the postname to form a slug, which is then used in the URL.  To visit the second page listed - the page about keyword strategy - you would have to type most of the following URL,, in order to ensure you ended up at the right page.  

This is because the URL is very similar to other URLs on the site as shown in the list above.  Unless you type practically the full URL in each case, WordPress would have no idea which page you wanted to visit due to each of the URLs listed, being largely similar.

Adding PostId Makes Things Easier

However if the postid is included you can visit a page using only its id. So if the URL were - all you would have to type is (assuming you set your site up to allow this.)

This helps when typing URLs, say, into mobile phones, or when communicating a URL over voice. It’s much easier to type or communicate than

An added benefit is that you can change the slug used in your post URL at will, for SEO purposes (should you ever need to) without having to set up a redirect after each change.

But Is It Better For SEO?

To be clear - the /%postname%/ permalink may or may not be better for SEO.  I suspect it makes no practical difference, but I have not tested it so I do not know. However, for the reasons outlined above, I prefer the flexibility of the /%post_id%/%postname%/

Certainly when Google lists a page with postid in the URL in the search results, it does not include the post id in the listing. This means that Google is fully aware of postids and so I am assuming, discounts them for SEO purposes. But I could be wrong! I am currently setting up a test to work out if it makes any limiting difference to include postid. I'll let you know.

More From This Series