Saltar navegación

[Resuelto] Creating a custom field that pulls data from another page

This support ticket is created 4 years, 7 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
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Zona horaria del colaborador: America/Jamaica (GMT-05:00)

Este tema contiene 3 respuestas, tiene 2 mensajes.

Última actualización por Shane 4 years, 7 months ago.

Asistido por: Shane.

Autor
Mensajes
#2208517

Tell us what you are trying to do?
I put a single field in my homepage, and I want it to pull data from a custom field in a post from my custom post type. However, when I click the drop down to select the custom field, there are no options.

Is there any documentation that you are following? No

Is there a similar example that we can see?

What is the link to your site? newspasta.com

#2208827

Shane
Colaborador

Idiomas: Inglés (English )

Zona horaria: America/Jamaica (GMT-05:00)

Hi Daniel,

Thank you for getting in touch.

Will this custom field data be static? Meaning it will always be pulling the data from Post X?

Please let me know.
Thanks,
Shane

#2212455

Yes, it will be static.

#2212869

Shane
Colaborador

Idiomas: Inglés (English )

Zona horaria: America/Jamaica (GMT-05:00)

Hi Daniel,

Then you won't need to create a custom field on the homepage post. What you can do is to pull the data from the custom field using the shortcode [types field='field-slug' item='1234'] where field-slug is the slug of the custom field and 1234 is the ID of the post that you want to pull the custom field value from.

Please let me know if this helps.
Thanks,
Shane