Using Category base in permalink (3 posts)

  1. bencavens
    Posted 3 years ago #


    I would like to use the category base in the custom permalink but somehow wordpress gives a 404 for all post pages. This only occurs because the exact category base is used inside the permalink structure. If I change the permalink to e.g. /w/%category%/%postname%, no problemo.

    My category base is: /work
    My custom permalink is: /work/%category%/%postname%

    Any ideas how I can get this to all work together? Thanks.

  2. Jonathan Dingman
    Posted 3 years ago #

    So the custom permalink would end up being...

    /work/work/post-name-here/ ?

    Seems redundant.

    why not just do..

    /%category%/%postname%/ instead?

  3. bencavens
    Posted 3 years ago #

    The goal is to get a userfriendly structure of the url segments. Itshould behave as a tree hierarchy where the segment to the right is a level deeper into the sitemap.

    /work points to a custom overviewpage of all projects

    /work/%category% points to a specific client
    (We use categories as the clientlist). e.g. /work/nike or /work/coca-cola-company. For this to work I use /work/ as a category base.

    /work/%category%/%postname% goes to a specific project. This is where the problem lies whereas /work/ in both category base as in the permalink doesn't seem to be allowed.
    e.g. /work/nike/billboard-advertisments-time-square

Topic Closed

This topic has been closed to new replies.

About this Topic