Skip Navigation

[Resolved] Toolset Relationship does not show in a Single Product Template

This support ticket is created 5 years, 1 month 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 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 3 replies, has 2 voices.

Last updated by Minesh 5 years, 1 month ago.

Assisted by: Minesh.

Author
Posts
#1364999
toolset01.png

I am trying to: Use the Relationship to show extra information in a Template

Link to a page where the issue can be seen:

I expected to see:

Instead, I got:

#1365197

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

The problem with Elementor is that we can't control the UI for Elementor templates and you don't have the Field and Views button available to you.

The shortcodes should still work in contexts where shortcodes are accepted (e.g. the text module or the shortcode module), but you need to enter the shortcode manually, or by copying and pasting from a backend edit screen where you had the Fields and Views button available.

So, to display the parent field information. You should use Types shortcode:

[types field='your-field-slug' item='@relationship-slug.parent'][/types]

Where:
- You should replace relationship-slug with your original post-relationship slug and replace field slug as well.

More info:
=> https://toolset.com/documentation/post-relationships/how-to-display-related-posts-with-toolset/displaying-fields-of-grandparents/#reminder-how-to-display-parents
=> https://toolset.com/documentation/user-guides/using-toolset-with-elementor-page-builder/

#1365547

Hi,

Where do I get this information:
[types field='your-field-slug'
item='@relationship-slug.parent'][/types]

Do you suggest maybe I build the Single Product Template with Toolset and then I can see all the "Shortcodes" I might need?

Thx,

Hermann

#1365991

Minesh
Supporter

Languages: English (English )

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

You can get all shortcodes you need using "Fields and views" button as you can see with the screenshot of the following Doc:
=> https://toolset.com/documentation/post-relationships/how-to-display-related-posts-with-toolset/displaying-fields-of-grandparents/#1-create-a-view-that-lists-your-posts

Basically - you should create a content Template from Toolset => Content template and use "Fields and Views" button to add your desired shortcodes to it and later add shortcode module from elementor builder and add the view's content template shortcode to it.