[Resuelto] Show custom fields between related posts
This support ticket is created hace 1 año, 7 meses. 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.
Hoy no hay técnicos de soporte disponibles en el foro Juego de herramientas. Siéntase libre de enviar sus tiques y les daremos trámite tan pronto como estemos disponibles en línea. Gracias por su comprensión.
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)
Este tema contiene 8 respuestas, tiene 2 mensajes.
I have Toolset and Elementor Pro installed. I need to show through a shortcode (without generating a view) the custom fields related between the blog post and the pages.
I have already generated the relationship between both but it doesn't show it.
How can I do it? I have not found it in the documentation.
Hello. Thank you for contacting the Toolset support.
I would like to know first what post relationship you have created, Can you please share screenshot of that and on what place you want to display what fields belongs to what post type.
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I have set the next reply to private which means only you and I have access to it.
Ok I can see that you have created one-to-many post relationship using Toolset between the post type "page" (parent) and "selected projects" (child).
To display the related post fields you will require view plugin and I've activated it.
As I understand you want to display the parent page custom fields on single child post (selected projects). You can add "Text" module to your elementor tempate and add the following shortcode:
Thanks manish, it works but the fields I can't display are the link type. How can I display it? I
am trying this way but it is not the correct one:
[types field='call-research-projects-pdf'' style='slug' item='@pagina-selected-project.parent'][/types]
I want to insert the URL of the field via a shortcode in a section of an Elementor Pro widget, so that element has a link.
The way you told me it doesn't work. Attached is a screenshot.
I can't download the PDF and it won't open in a new tab. Why can this happen? It is very strange that I don't see it and you do. I have tried browsing with the cache disabled.