Saltar navegación

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

This support ticket is created 2 years, 10 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.

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 -

Zona horaria del colaborador: Asia/Kolkata (GMT+05:30)

Este tema contiene 1 respuesta, tiene 2 mensajes.

Última actualización por Minesh 2 years, 10 months ago.

Asistido por: Minesh.

Autor
Mensajes
#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
Colaborador

Idiomas: Inglés (English )

Zona horaria: 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/