Page ID in permalink
-
Hi there,
My current permalink structure is:
/%postname%/%post_id%/
This works for posts, but I’d like to make it work for pages too. I’m making a website in multiple languages with the Polylang plugin. And with for example the contact page, I get now: https://www.website.com/contact, https://www.website.com/en/contact-2
To make better permalinks I thought of putting the page-id in the permalink: so i will get for example: https://www.website.com/contact/94, https://www.website.com/en/contact/96
This would be easier to work with in combination with the Polylang plugin.
Any ideas how to get the page-id in the page-url? Some modifications of the .htaccess file perhaps?
- The topic ‘Page ID in permalink’ is closed to new replies.