WordPress.org

Ready to get started?Download WordPress

Forums

Change Permalink for single category (5 posts)

  1. Prateek Gupta
    Member
    Posted 1 year ago #

    I'm using this permalink for all /%category%/%postname%/. Due to some reasons i want to change permalink to /name/%post_id%/ for a single category and it's sub-categories.

    i.e. For all permalink is like this - http://www.example.com/categoryname/postname

    and i want to change permalink for "world" category and it's subcategories like "india","u.s." etc. to this - http://www.example.com/world/34343

    How i'll do that?

  2. Krishna
    Volunteer Moderator
    Posted 1 year ago #

    You can try using /%category%/%post_id%/ as your custom permalink so that you will get world as the category (create a category by that name) and the post ID will be shown as the number as shown by you.

  3. Prateek Gupta
    Member
    Posted 1 year ago #

    This not gonna work, I want to change permalink for only single category not for all categories.

  4. Krishna
    Volunteer Moderator
    Posted 1 year ago #

  5. Prateek Gupta
    Member
    Posted 1 year ago #

    I've tried every possible thing except coding. It change single post permalink. So according to this i've to change 300 posts permalink manually.

Topic Closed

This topic has been closed to new replies.

About this Topic