Skip Navigation

[Resolved] Adding Fields to a page in Elementor

This support ticket is created 5 years, 6 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 5 replies, has 2 voices.

Last updated by Minesh 5 years, 6 months ago.

Assisted by: Minesh.

Author
Posts
#1279471

Please see this video for a full 3min explanation of this issue.

hidden link

I want to know how to add custom fields from a 'relationship' to a page in Elementor

Custom Types = Members and Roles/Position

Relationship - Members (One) - Roles/Position (Many)

See video. Thanks

#1279491

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

To display the parent field value on single child post you should add a shortcode using the shortcode module:
<ode>
[types field='field-slug' item='@memeber-club-role-position.parent'][/types]
[/php]
Where:
- Replace your custom field slug with field-slug

More info:
https://toolset.com/documentation/post-relationships/how-to-display-related-posts-with-toolset/displaying-fields-of-grandparents/#reminder-how-to-display-parents

#1279605

So...if I wanted to show the First Name of the Chairman, where do I designate that I need the 'Chairman's' first name as apposed to the fkirst name of one of the other Role/Postitions in the 'Custom Type' 'role-position' eg. like Finance Director.

I've tried

[types field='first-name' item='@role-position.parent'][/types]

#1279607

Minesh
Supporter

Languages: English (English )

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

It important that where you want to display the content and what content.

I need to know on which page/post you want to display what? are you on single parent post or child post? Can you please share the problem URL and access details so I can check your relationship and data structure and tell me what field you want to display.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

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

#1280621

Minesh
Supporter

Languages: English (English )

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

Thank you for sharing access details but the shared access details is not working.

Can you please send me working access details.

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

#1281729

Minesh
Supporter

Languages: English (English )

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

Well - I see the about us page is a single page which has no connection with the post type member as well as Roles/Position.

To display the chairman's first name field which is a part of the Member post type, you should create a view and add filter by post ID and add the post id of "Chairman" post's and then display the related post.

So - i've added the view as given under - where 7982 is the chairman post ID;

[wpv-view name="view-display-member" ids="7982"]

And created the view - where we are displaying the first name:
hidden link

 [types field='first-name' item='@member-club-role-position.parent'][/types]

As you can see on the front-end it displays correctly the first name of Chairman:
=> hidden link