Skip Navigation

[Resolved] Display an intermediary post's custom field value

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 1 reply, has 2 voices.

Last updated by Minesh 11 months, 3 weeks ago.

Assisted by: Minesh.

Author
Posts
#2748244
Screenshot 2024-09-17 at 5.37.30 PM.png

We are building landing pages for Summits (events), and would like to display Organizations with their Sponsor Level in relation to the Summit. I created a relationship between Summits and Organizations, and added a checkbox custom field on the relationship for Sponsor Level.

The problem I'm having now is that when I choose the Sponsor Level field when displaying the Organizations, I'm not able to see any values come through. I tried clearing the field cache, and opening and re-saving each intermediary post, but nothing is coming up. The YooTheme builder we are using for the template is displaying the Sponsor Level field as an option (see screenshot), but it's not populating the value.

Any assistance you can offer would be great. Thank you for your time.

#2748472

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

I do not see the theme you are using is officially toolset integrated theme. Here is the Doc that shows the recommended themes for Toolset:
- https://toolset.com/documentation/recommended-themes/

As you are using the YooTheme thene/builder it's better known by the theme/builder author how much and at what level they have integration with Toolset.

Normally, you should use the following Types shortcode if you are using legacy view to display the intermediary post field.

For example, if you have many to many post relationship between books and authors for the field publish date:

If your current post is in a many-to-many relationship acting as a parent or child, you can try to determine the intermediary post of a connection with another post by using the value @{relationship-slug}.association. Note that this scenario is open to ambiguity because a single post can have several connections to other posts in this many-to-many relationship, but this attribute value will return only one intermediary post.

[types field="publish-date" item='@book-author.association'][/types]

OR
If your current post is in a many-to-many relationship acting as a parent or child and you are displaying it as part of a View loop that includes a query filter by posts relationship, which is used to set the context of the missing parent or child element of the relationship, you can use @{relationship-slug}.intermediary to display data for the defined intermediary post type. This intermediary post is defined by your current post and the one provided as a query-filter value.

[types field='publish-date' item='@book-author.intermediary'][/types]

More info:
=> https://toolset.com/documentation/programmer-reference/views/views-shortcodes/item-attribute/

#2748874

Thank you for pointing me in the right direction. I ended up using a View to display the organizations and sponsor levels, instead of using the template's built-in grid.