Display Data From Two Custom Post Types In Same Row
-
I wondered if you could answer a question I have?
I essentially have two custom post types called “slot” and “session”. Each “slot” then has four fields called “A” “B” “C” & “D” where then I am then providing the ID of the session. The idea is then that each slot can have up to 4 sessions but then the data about each session is held in the session record.
What I’m now looking to do is have WP Table Builder show a table of slots with the associated sessions. However, my question is if the slots are only being given ids of the associated sessions, is there a way for WP Table Builder to be able to get the associated session posts and then display the data I need from those posts, or is this not possible? If it is, then could you provide a little guidance regarding how to do this?
If it’s not possible, then if I gave each session a datetime field, is there a way I can get WP Table Builder to create each row based on the different datetimes that are provided rather than the actual WordPress post? This seemed more complicated compared to the 1st option but I could be wrong.
Thanks,
Jonathan
- The topic ‘Display Data From Two Custom Post Types In Same Row’ is closed to new replies.