Forums

[resolved] Some help on a quite complex custom URL hierarchy (2 posts)

  1. egasimus
    Member
    Posted 10 months ago #

    Hi all, this is my first post here. I'm not really sure if this is the right forum for this, and it's also quite long, but here goes.

    I'm making a music website based on WordPress. One of its features is having lyrics and guitar tabs for various artists, as well as an encyclopedia of sorts, which contains information about said artists.

    Background
    sa_song is a custom post type for the actual song data. sa_artist is a custom taxonomy, basically tagging the songs with whatever artists have performed them.
    en_artist is a custom post type, containing information about the artist - history, photos, band members, etc.

    Problem 1
    Is just using the same slug the accepted way to relate the sa_artist taxonomy to the en_artist post type, or is it too hacky and unreliable?

    Problem 2
    The starting page of my song archive is http://mysite/songarchive/. It uses a custom page template.
    I have made the rewrite slug for the aforementioned sa_artist taxonomy to also be songarchive. This way, when the user opens http://mysite/songarchive/bandname, a custom taxonomy template lists all songs tagged with "bandname", info about the artist, etc.
    However, I want the URL for a song to be http://mysite/songarchive/bandname/songname. I am completely at a loss about how to achieve it. I have already made a custom taxonomy tag to look as if it's the child of a custom page, but how do I make posts behave as if they were children of the tags they were marked with?

  2. egasimus
    Member
    Posted 10 months ago #

    (moderators please remove this topic, I have made some progress and state my problems much more clearly in another)

Reply

You must log in to post.

About this Topic