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]
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