WordPress.org

Ready to get started?Download WordPress

Forums

Page ID in permalink (1 post)

  1. Nikk
    Member
    Posted 1 year ago #

    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: http://www.website.com/contact, http://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: http://www.website.com/contact/94, http://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?

Topic Closed

This topic has been closed to new replies.

About this Topic