Skip Navigation

[Closed] Post relationship

The Toolset Community Forum is closed, for technical support questions, please head on to our Toolset Professional Support (for paid clients), with any pre-sale or admin question please contact us here.
This support ticket is created 9 years, 1 month ago. There's a good chance that you are reading advice that it now obsolete.
This is the community support forum for Types plugin, which is part of Toolset. Toolset is a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients and people who registered for Types community support can post in it.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 1 reply, has 2 voices.

Last updated by Luo Yang 9 years, 1 month ago.

Assisted by: Luo Yang.

Author
Posts
#287894

Hi
I am building a discography with albums and tracks and have a problem setting up post relationship in types.
Right now I have:
Custom post type Album with different taxonomy like artist, format, country and so on.
Custom post type Song with different taxonomy like song version and artist.
Now comes the tricky part.
How can I add the songs to the album? A song can be on several different albums.
Also, every album can consist of one to many tracklists (if it a boxset of 3 cd's there will be 3 tracklists).
So I need a button on the album where I can add new tracklist. When I press that is should show "track no. 1" and a field where I can choose one of the songs.
Then at button saying add new track so I can add more tracks.
Then a button saying add new tracklist if I need to add more tracklists.
Can this be done with types?

#288082

I suggest you try setup many to many relationships between post type albums and Song,
Here is a document about "Creating and Displaying Many-to-Many Post Relationships":
https://toolset.com/documentation/user-guides/many-to-many-post-relationship/

Hope it help

The topic ‘[Closed] Post relationship’ is closed to new replies.