• stephmoreau

    (@stephmoreau)


    I’ve been working on my wordpress permalinks for a couple of days and can’t seem to figure out how to get them to work properly.

    Here is the simple version of what i have and what i’m trying to achieve

    I have 5 different categories (home, sports, beauty, arts, food)
    I have 3 types of posts (post, pages, events(custom))
    Each post_type can and will be associated to only 1 category

    Here is what I would like to get in terms of permalinks

    site.com/%category% = a different page for each caetgory (not an archieve)
    site.com/%category%/%post_type% = archive listing of post_type
    site.com/%category%/%post_type%/%post% = single of post
    
    site.com/%category%/%page_slug% = the contents of a page

    When i look at the rewriterules that are being applied i get close but it doens’t include my category in the rewrite part

    %category%/event//?$ index.php?post_type=event
    Any help to get this working would be greatly appreciated. Thanks

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Custom permalinks’ is closed to new replies.