• Is it possible to change the permalinks for certain categories?

    Right now, globally, I’m using:
    /%category%/%postname%/

    I’d like to keep that global, with the exception of two categories use:

    /%category%/%postname%-%post_id%
    or if the dash wont work,
    /%category%/%postname%/%post_id%
    probably will.

    What’s the best way to accomplish this?
    Additionally, is there a way through the post-id to force it to be at least 3 digits?

Viewing 3 replies - 1 through 3 (of 3 total)
  • There are plugins to change a permalinks on a single post/page/category, etc., but I can’t recall any way to do this over an entire category automatically.

    However, this would be a good candidate for a custom post type. You could easily set your permalink structure to do what you want on that post type, and it would be unaffected by the main Permalinks setting.

    As for your post-id question, I haven’t got an answer. I tried manually incrementing the ID in the database, but that doesn’t seem to work any longer.

    Thread Starter atom8bit

    (@atom8bit)

    However, this would be a good candidate for a custom post type. You could easily set your permalink structure to do what you want on that post type, and it would be unaffected by the main Permalinks setting.

    OK, cool. That’s a start – how I can accomplish this?

    The Codex is always the best place to start.

    If the programming is a bit daunting, there are a number of plugins (paid and free in the repository) that can help you create and manage custom post types. I personally prefer WP-Types.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Changing permalinks for only certain categories’ is closed to new replies.