Navigation überspringen

[Gelöst] Content template: show field from toolset

This support ticket is created vor 4 years, 3 months. 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 -

Zeitzone des Unterstützers: Asia/Kolkata (GMT+05:30)

Dieses Thema enthält 3 Antworten, hat 2 Stimmen.

Zuletzt aktualisiert von roulartaM vor 4 years, 3 months.

Assistiert von: Minesh.

Author
Artikel
#2306681

versteckter 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
Unterstützer

Sprachen: Englisch (English )

Zeitzone: 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
Unterstützer

Sprachen: Englisch (English )

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

I see multiple post relationships between the same post types, please check the following screenshot: versteckter 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.

=> versteckter Link

Then, to the single presentation content template:
=> versteckter 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:
=> versteckter Link

#2306805

My issue is resolved now. Thank you!