WordPress.org

Ready to get started?Download WordPress

Forums

How to add /word/ before /page-title/ ? (3 posts)

  1. Luca
    Member
    Posted 4 months ago #

    Hello!
    I'd like to add a /word/ before some /page-title/ like that:

    From:

    mysite.org/example-page-pizza/
    mysite.org/example-page-bacon/
    mysite.org/example-page-hamburger/
    ...

    To:

    mysite.org/foods/example-page-pizza/
    mysite.org/foods/example-page-bacon/
    mysite.org/foods/example-page-hamburger/
    ...

    And from:

    mysite.org/example-page-ferrari/
    mysite.org/example-page-lamborghini/
    mysite.org/example-page-audi/
    ...

    To:

    mysite.org/cars/example-page-ferrari/
    mysite.org/cars/example-page-lamborghini/
    mysite.org/cars/example-page-audi/
    ...

    Is this possible? How could I do it?
    Thank you for your attentions!

    Best regards,
    Luca

    [ No bumping please. ]

  2. janmejai
    Member
    Posted 4 months ago #

    Navigate to settings >Permalinks in your WordPress Dashboard and select custom structure as permalink and add /%category%/%postname% in the respective field,Save it.
    While writing the article assign a Category to the post like "food" and it will show the link as mysite.org/food/example-page-pizza/

  3. Luca
    Member
    Posted 4 months ago #

    Sorry for bumping.
    Yep, this works for articles, but for pages it’s a whole other story. :\

    In any case, I thank you for replied me.

    Kind regards,
    Luca

Reply

You must log in to post.

About this Topic