Skip Navigation

[Resolved] Create dropdown/checkboxes in backend to list items from different post type

This support ticket is created 5 years, 8 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

This topic contains 2 replies, has 2 voices.

Last updated by tomasP 5 years, 8 months ago.

Author
Posts
#1220529

Hello,
I have two custom post types: Lessons (items with lessons Teachers offer) and Teachers (teacher profiles). In the backend of Lessons I need to create dropdown or set of checkboxes (?) of all Teachers to be able to select one or more Teacher(s) to add his/her/their profile to the given Lesson.
Absolutely no idea how to do that. Any directions, please?
Thanks in advance,
Tom

#1220680

You can use the PRF (Post Reference Field) that is elaborated here:
https://toolset.com/documentation/post-relationships/how-to-display-related-posts-with-toolset/using-post-reference-fields-to-display-information-from-a-related-post/

This is the only inbuilt field that will display Posts in another Post so to choose/select those.

Otherwise, you might want to use an M2M or O2M (Many to Many or One To Many) Post Relationship, elaborated here:
https://toolset.com/2018/05/toolset-post-relationships-release/
https://toolset.com/documentation/post-relationships/

This also allows you to pick/select posts (connect them)

#1221108

Whooooooooa! Used the first option and it worked like a charm! Thank youuuu!