Forums

[resolved] Add post-ID to slug automaticly (5 posts)

  1. Norke
    Member
    Posted 11 months ago #

    Hi chaps,

    I would like to have the following urlformat:
    url.com/slug-ID

    I'm working on a website that will have many similar titles so instead of slug-1, slug-2 and slug-3 I would like to have the POST-ID.

    It should only do that for posts, not pages.
    Can you help me on my way?

    Thx for the help guys :)

  2. esmi
    Theme Diva & Forum Moderator
    Posted 11 months ago #

  3. Norke
    Member
    Posted 11 months ago #

    Hi esmi,

    that was indeed the first thing I tried:

    /%category%/%postname%-%post_id%

    It gave me these results:

    site.com/burp-15 [post-ID = 15]
    site.com/burp-2-16 [post-ID = 16]
    ...
    site.com/burp-5-32 [post-ID = 32]

    Is there a possibility that the number of the page isn't showing?

    Thanks for keeping me posted :)

  4. esmi
    Theme Diva & Forum Moderator
    Posted 11 months ago #

    I would like to have the following url format:
    url.com/slug-ID

    Try just using /%post_id%.

  5. Norke
    Member
    Posted 11 months ago #

    ha, ok :D thx again!

Reply

You must log in to post.

About this Topic

Tags