Skip Navigation

[Resolved] Content template: show field from toolset

This support ticket is created 2 years, 10 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
- 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 roulartaM 2 years, 10 months ago.

Assisted by: Minesh.

Author
Posts
#2306681

hidden link
This is a page for a presentation created with a content template

I need to show the company telephone in this Presentation Content Template.
The company telephone is not in the presentation toolset, but in the company toolset.

How can I do this please?

I tried this but none of them show anything:
[types field='company-telephone'][/types]
[types field='company-telephone' item='$parent'][/types]
[types field='company-telephone' item='@presentation-company.parent'][/types]
[types field='company-telephone' item='@company.parent'][/types]

#2306699

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

Can you please share what post-relationship you created between company and presentation?

If you can share the admin access details I will quickly check and see whats going wrong with your setup.

I have set the next reply to private which means only you and I have access to it.

#2306789

Minesh
Supporter

Languages: English (English )

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

I see multiple post relationships between the same post types, please check the following screenshot: hidden link
- Companies Presentations
- Presentations Companies

Make full backup of your site and database before you delete any post relationship. Please make sure you are using correct post relationship and remove unwanted post relationship.

To display many-to-many post relationship, you will require to create a view. I've created the following view that will display the company post type information and added the post relationship Query Filter:

Filter by post relationship or repeatable fields group owner
Select posts in a Companies Presentations relationship that are related to the Post where this View is shown.

=> hidden link

Then, to the single presentation content template:
=> hidden link

I've added the view as given under:

<h1> Company Info:</h1>
[wpv-view name="company-info-belongs-single-presentation"]

You can add as many fields as you want that belongs to company to the above view. I can see its displaying the telephone number field value:
=> hidden link

#2306805

My issue is resolved now. Thank you!