The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other Help with WordPress Navigation Structure

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • #38825

    Hi All,

    I’m trying to replicate the navigation layout Chris uses here on CSS-Tricks for a project of my own. I’ll use Chris’s site as an example: = Shows all snippets = Shows all posts in snippets that are ‘css’ = Shows all posts in almanac that are ‘css’

    How is it possible to have different categories (I’m assuming categories) with child categories (or are they tags?) with the same URL slug?

    I’ve tried re-creating this type of layout for my site, and it doesn’t allow multiple child categories with the same url slug.

    What I’m trying to achieve is an attractive url, with a hierarchical layout, where multiple categories can have the same child categories (different physically, but the same name) – And most importantly, I can have a custom template for each parent/child category.

    I did wonder whether I could achieve this using ‘pages’ rather than categories – but before I start working on this I though I’d ask your opinions.

    Thanks in Advance!


    I think I may have worked part of it out…

    – Custom Taxonomy called Snippets with Terms ‘CSS’, ‘PHP’, ‘WordPress’ etc.
    – Use the taxonomy-snippets.php template to show all snippets.
    – Use the taxonomy-snippets-css.php template to show all css snippets.

    BUT – how would I then create a Custom Taxonomy called Almanac that also has Terms ‘CSS’, ‘PHP’ etc?

    They’d need to have different slugs which makes the URL look messy :(

    Just to say – I’m not creating a – I’m just using Chris’s navigation as an example, as it makes sense in this context!


    Or.. better still…

    – Create 2 Custom Post Types – Snippets and Almanac.
    – Create a Taxonomy called ‘about’ with terms ‘CSS’, ‘PHP’ etc and link it to both Snippets and Almanac.

    I’m presuming that way I can have a snippet with css, and an ‘almanac’ with css.

    BUT – how could I then query down to taxonomy level for each of these? i.e. have a different template page for snippets/css and almanac/css?!

    ALSO – I’m not sure whether the permalink structure would be pretty…


    So, what did you end up with? :)

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘Other’ is closed to new topics and replies.