Reputation: 45
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 Settings
→ Permalinks
.
Upvotes: 0
Views: 2511
Reputation: 45
I finally found!
It is possible to add /%post_id%/
in Custom structure
field. :)
Upvotes: 0
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