Skip Navigation

[Resolved] Dinamic select with titles of other Custom Post Type

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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10: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/Kolkata (GMT+05:30)

This topic contains 1 reply, has 2 voices.

Last updated by Minesh 1 year, 10 months ago.

Assisted by: Minesh.

Author
Posts
#2524677
codigo personalizado.PNG

Hi, I have two custom post type created.
Example name:
1. Courses
2. Teachers

In the CPT1 I want to create a custom field of type select and that the options are filled dynamically. The data with which this select has to be filled, are the titles of the posts published in CPT2.

How can I do it?

I have tried with the options described in the following links without success:
https://toolset.com/forums/topic/use-custom-select-field-with-values-from-custom-post-titles/
https://toolset.com/forums/topic/custom-select-field-pulling-dynamic-data/#post-2189903

Thanks

#2524711

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

What if you create a post reference field that will allow you to select the post of another post type.

More info:
- https://toolset.com/course-lesson/using-post-reference-field-to-set-up-one-to-many-relationships/