Support » Fixing WordPress » If post has category, change url writing

  • 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.

  • The topic ‘If post has category, change url writing’ is closed to new replies.