[Resolved] Show custom fields between related posts
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.
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.