meneldil
meneldil

Reputation: 45

WordPress : Use the ID instead of the title for the permalink

Natively WordPress uses the title to generate the permalink but for reasons of confidentiality, I would like not to display the title in the url (for post and custom post type only, not pages). I would like to use the id for example or a series of numbers and letters.

How to change this when we click on "Edit permalink" or when we create a new post?

EDIT: I do not want to disable url rewrite in SettingsPermalinks.

Upvotes: 0

Views: 2511

Answers (2)

meneldil
meneldil

Reputation: 45

I finally found!
It is possible to add /%post_id%/ in Custom structure field. :)

Upvotes: 0

Narek Zakarian
Narek Zakarian

Reputation: 215

In the Settings → Permalinks screen, you can choose one of the more common permalink structures. You have to choose the first one (Plain) to have the permalinks with id of the post.

Upvotes: 1

Related Questions