Skip Navigation

[Resolved] Comedy Club parent child questions

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 8 years, 2 months 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 3 replies, has 2 voices.

Last updated by Luo Yang 8 years, 2 months ago.

Assisted by: Luo Yang.

Author
Posts
#368230

Hello

(Sorry for the long post. I've got a dev site up and I am testing ideas.)

I have a comedy club client, their shows normally follow this pattern with the same comic:

Friday 8pm-
Friday 10:30p
Saturday 8pm
Saturday 10:30p

Sometimes they add a show for another comic on Saturday 5:30pm.

So, I think my Post Type structure would be:

Shows (I'd enter shows here for the week)
--> Comic (from drop down of comics)
--> Show Date Time (add new)
--> Show Date Time (add new)
--> Show Date Time (add new)

Show Date Time (Parent: Show, Comic?) (I'd hide this from admin menu, I think)
- Date/Time
- Tix URL
-->comic

Comic (Parent: Show, Child: Show Date Time) - Can belong to many shows.
- Bio
- URL

(I may also at a Venue to this, but, I assume that will work like comics)

I want to display:

- All Shows by date (or range)
-- Should I put a start and end date on Shows?
- All Show Date Time (so, we can see the odd Saturday 5:30pm show)
- All Comics
- Next show on website front page (and/or all shows for that day or week grouped by comic)

Questions:
- When I go to add show, I am able to add showdates as I want. But, I don't get a comic drop down, I get Add new comic. ( realize the show dates have a comic, but, I want to attach a comic to the show too)
- Are my Post Relationship (Parent / Child) assumptions right? I did see this, but, it doesn't seem link our workflow: https://toolset.com/documentation/user-guides/many-to-many-post-relationship/

TIA, Jerry

#368317

Dear Jerry,

I suggest you setup many-to-many relationships between post types "Venue" and "Comic"
For example:
Parent post types: "Venue" and "Comic"
child post type: "Show"
in post type: "Show", add the custom date-time field "Show Date Time"

See our document:
Creating and Displaying Many-to-Many Post Relationships
https://toolset.com/documentation/user-guides/many-to-many-post-relationship/

#368708

I don't have a venue CPT yet, it's planned for the future once I figure the rest out.

My issue is between shows and comics. I don't have a comic drop down, only enter a new comic.

Thanks, Jerry

#369015

If you do not have venue CPT yet, you can create one.

As I suggest above, please try to setup the post types as many-to-many relationships:
Parent post types: "Venue" and "Comic"
child post type: "Show"
in post type: "Show", add the custom date-time field "Show Date Time"

See below test site:
hidden link
user/pass: xgren/111111

It is a single Venue post, in section "Post Relationship", you can add child show posts with custom date field and related Comic post.

Hope it help

The forum ‘Types Community Support’ is closed to new topics and replies.

This ticket is now closed. If you're a Toolset client and need related help, please open a new support ticket.