Make changes to WordPress Permalink Settings
You can choose to set your permalinks to just Post name if you wish, in which case you would select the Post name option. However, I don’t do that. I prefer to use a custom structure of /%post_id%/%postname%/
My settings look like this :
I use a custom structure of /%post_id%/%postname%/ because it removes ambiguity and in my opinion, makes running a site day-to-day, easier.
I don't know if it interferes with Google’s view of a URL for SEO purposes. I don’t believe so, but you must come to your own conclusion.
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 post name 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, https://yoast.com/what-is-a-keyword-strategy/, 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 the majority of each of the URLs being the same.
However if the postid is included you can visit a page using only its id. So if the URL were
https://yoast.com/123/what-is-a-keyword-strategy/ - all you would have to type is https://yoast.com/123 (assuming you set your site up to do this OR use our plugin which has a checkbox to enable this functionality)
This helps when typing URLs, say, into mobile phones, or when communicating a URL to someone using voice. It’s much easier to type https://yoursite.com/123 than https://yoursite.com/what-is-a-progressive-web-app-pwa/
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.
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%/