WordPress.org

Ready to get started?Download WordPress

Forums

If post has category, change url writing (1 post)

  1. BramVanroy
    Member
    Posted 1 year ago #

    My main posts are news items (category "news"). Therefore, I used global URI writing in the following format: /year/month/post-name

    I also have posts that contain photo albums (category "photo") but I want these to have another URI structure, namely: /post-name

    I've been looking over the Internet and I found this link that contains quite some information. I also vaguely remember a hook in functions.php that could do this:

    'rewrite' => ...
    Unfortunately, for a WordPress Newbee as myself, it's not enough. I can't figure out how to do this. Any help? Thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic