• Hey there,

    I’m having trouble figuring something out here.
    I’ve got a couple CPT’s (Teams, Injuries etc..) with a global taxonomy (sport).

    The taxonomy sports holds different sorts of sporting activities:
    eg. Football, Hockey etc..

    I’m trying to sort CPT archives with a taxonomy term like Football.
    The following visually:
    Football
    – Teams (only show football teams)
    – Injuries (only show football injuries)

    Hockey
    – Teams (only show hockey teams)
    – Injuries (only show hockey injuries)

    Any idea how to do this? It seems like I’m missing something.

Viewing 4 replies - 1 through 4 (of 4 total)
  • if is custom post type and is archive,,,

    Thread Starter Robinero

    (@robinero)

    So you’d suggest creating pages with an if statement?
    Could you elaborate it a bit more?

    Thread Starter Robinero

    (@robinero)

    Oh I just realized that’s not what I meant at all.
    I need to group things on pages, however I cannot figure out a way to do so, in a “WordPress way”.

    Thread Starter Robinero

    (@robinero)

    My fix for now is creating separate pages depending on slug (page-football-teams.php) and adding a code that filters on CPT, Taxonomy and Term, which I have to manually add.

    If anyone has a better idea let me know!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Custom Post Type Archive (Taxonomy)’ is closed to new replies.