Forums

When taxonomies are overkill, is there a better way to relate posts? (4 posts)

  1. activefantasies
    Member
    Posted 4 months ago #

    I've been developing sites in WordPress for two years now and there's a problem that I often come up against. I'm wondering if anyone has any recommendations for dealing with it - be they techniques, hacks, plugins, pages I've missed in the codex… :)

    Taxonomies are a great way of organising posts, pages or any content but often I want to link content (posts of one type or another) directly.

    For example - I'm creating a site for an arts festival and I have two custom post types, 'Artist' and 'Piece'. Some artists may have created multiple pieces and some pieces may have been created by multiple artists.

    Each artist page would show the pieces they had created and each piece page would show the artists that had made them.

    Now, both Artist and Piece posts need to be fully editable posts. They need to have all sorts of information associated with them (artists would need a profile, pieces would need description, location, times etc) so neither of them could be created as a taxonomy instead of a post type. They need their own page.

    I think the expected solution is to create an intermediary taxonomy, i.e. to have an 'Artist' taxonomy as well as an 'Artist' post type and to then add all the names of the artists as terms under the taxonomy, associate each artist post with the corresponding term, and then you could go through the pieces and associate them with the corresponding artists. Phew.

    This is not a great solution though as there is extra legwork and maintenance involved. Also neither post type is more important than the other, they are both essential. It also a bit unintuitive, particularly for a client.

    Ideally, there would be a way to indicate a relationship between these two post types which would allow to then cross-reference the posts within them - and preferably this would look like the categories window in the right column on the edit post page, contain a list of all the posts in the other type. That's the dream!

    I've gotten by using Microkid's Related Posts plugin which allows you to manually associate posts, it's a great plugin but I'd like to know how other people are dealing with such situations.

    Is there a better way to do this?

  2. dkotter
    Member
    Posted 4 months ago #

    I've used this plugin before, which allows you to create relationships between posts, pages, etc. It works well for simple things.

    For more complex things, I use Pods. It's kind of complex and took me some time to fully learn, but it is great for creating relationships between things.

    I've used it on a site that has user submissions. So I create a Pod for each user, with all their information, and then anytime they submit something, I create a post with that video or photo. Then in the Pod for the user, I create a relationship to that post. It allows as many relationships as you want, so it makes it really nice to relate things together.

  3. Gabe Young
    Member
    Posted 4 months ago #

    Rather than spending a lot of time on the 'right' taxonomy, I choose to keep it pretty simple. I use only several big buckets as my level 1 categories. I leverage tags for the rest.

    In your case, you could use tag each post with the artist.

  4. activefantasies
    Member
    Posted 4 months ago #

    Thanks folks, some good thoughts.

    Posts 2 Posts looks really useful, not come across that before and will definitely be giving that a whirl immediately :)

    Any one have any other approaches?

Reply

You must log in to post.

About this Topic