• Good morning community.

    I have been developing using WordPress for years for various contexts, both corporate and amateur. I am writing to you because, despite my good experience on the platform, I cannot find a way to create the new platform that I would like to create.

    Since it is very technical in the sports field, I will use a more understandable example here.

    I want to create an archive that has this hierarchy:

    Music band -> Album -> Tracks

    I would like to be able to create a hierarchical tree taxonomy with 3 (or maybe 4) levels.

    I have tried with custom taxonomies and custom fields but the system becomes too cumbersome to manage. I would like to have a plugin that manages these hierarchies. The best would be to have an admin part (similar to a bootstrap admin template) and a public part that lists only the music bands, for each band the various albums etc…

    Obviously the various entities must have their own custom fields.

    Do you know of any framework (possibly in wordpress, but I am also open to other solutions) that does this?

    In simpler words, it could be a catalog with subcategories, but in reality they are not subcategories, they are Taxonomy hierarchies.

    Thanks a lot for any ideas!

    Dario

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator bcworkz

    (@bcworkz)

    Nearly anything is possible with WP if you’re willing to do any custom coding necessary. Hierarchical taxonomies are of course feasible. It’s possible to also have hierarchical archive listings, but it could end up performing poorly due to the number of queries required. Using your band example, we could query for bands, but then for each band listed we’d need to query for its albums. For each album listed we’d need to query for its tracks.

    Perhaps consider doing an accordion type of presentation where only the bands are initially listed. If one clicked on a specific band, script would make an Ajax or API request for albums which would be inserted under the appropriate band listing. Similar for tracks. Thus the majority of queries are only implemented by user interaction.

    Alternately, have everything occur as a hierarchical post type. Bands would be top level posts. Albums would be immediate children, and tracks are grand child posts of the band. Then you can get archive listings similar to how the page and taxonomy term admin list tables show child posts or terms, similar to:

    Band 1
    - Album 1
    -- Track 1
    -- Track 2
    Band 2
    - etc...

    Here no taxonomy is required. It’s implicit in the levels whether a post is band, album, or track.

    Thanks @bcworkz, I will try your solution because the first you mentioned and that I already developed is too complex and heavy.

    Dario

    From what I understand, it is not possible to do this from the interface but you have to act at code level, correct?

    Dario

    Moderator bcworkz

    (@bcworkz)

    The hierarchical post type approach does not necessarily require custom coding. You could us the “page” post type for this, or use a plugin that helps you create your own custom post type. The drawback here is there’s nothing that says a child post is an album, though it’s implicit through it being the immediate child of a top level band post. Similar for album tracks.

    While such a schema does not require custom coding, some coding may be required to present the data to visitors in the way you want.

    Thread Starter dariowelco

    (@dariowelco)

    Good morning everyone, I realized that typing in wordpress is too weak and, surprised at not having found ready-made plugins for creating hierarchical data structures, I chose to switch to Rukovoditel, a web-based system for creating generic and universal data structures. It is excellent and allows for strong typing with entity hierarchies.

    I am always open to the wordpress hypothesis but at the moment I see it as a remote hypothesis. If anyone knows of a similar wordpress system, I am all ears!

    Dario

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.