Skip Navigation

[Resolved] Elementor dynamic content and related posts

This thread is resolved. Here is a description of the problem and solution.

Problem: I am trying to insert dynamic content into an Elementor template, but it doesn't seem to be working. I would like to insert content from a related post.

Solution: Elementor's dynamic content feature is still fairly new and isn't fully integrated with post relationships just yet. However, you can create a View of related posts and insert the Types field shortcode in that View. Then insert the View in an Elementor template.

Relevant Documentation:
https://toolset.com/documentation/user-guides/using-toolset-with-elementor-page-builder/

This support ticket is created 6 years, 1 month 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
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 5 replies, has 2 voices.

Last updated by MarcelB4224 6 years, 1 month ago.

Assisted by: Christian Cox.

Author
Posts
#1140739

Hi Christian,

How are you ?

Created the "many" relationship, to connect employees to "normal" posts and post types. But it is not working as i expected. When create new post, i don't get the info or the "connected" employee with Dynamic content. When i create a view it shows the employee based on the relationship made but i hope this is not the idea.

I expect to choose dynamic content (with elimentor) and show the info related to the post. What do I do wrong here ? Also when i place short code in the post nothing is shown.

#1140741
1140572-connected_employee.png
1140572-post_example.png
1140572-shortcode_inside_post.png

Hi, Elementor's Dynamic Content feature is very new and does not offer any customization settings for dynamic content fields yet. So it's not possible to use custom fields from related posts, or to choose any of the other custom settings you can choose for Types custom fields like image size, crop, alt, title, etc.

Right now the best way to show an image field from a related post is to insert the field in a View, then insert the View in your Elementor design with a View element. Or you can use the Fields and Views button to insert the field shortcode in a post or page, then cut and paste the field shortcode into a basic Text Element in Elementor.

#1141055
toolset 1.png
toolset 2.png

Hi Christian,

Hmmm ok, as shown on previous support ticket, they try to sell it "different"

I tried to place the field directly using text widget but as mentioned this is also "not" working. Inside a post is the same, don't see the related info from the relationship.

Code i use [types field='foto-medewerker' title='%%TITLE%%' alt='%%ALT%%' size='full'][/types] i expect that this is correct. Only if i choose option"post selection" > "A post related to the current post, set by a Types relationship" i can't choose on of the options but I suppose this is because i have many to many relationship.

Cheers

#1141452

May I log in and see how you have this set up? Private fields are active here.

#1142387

Okay thank you, I understand better now. You are correct. There is a many-to-many relationship, so there can be many foto-medewerker images associated with each Post. You must create a View of Werknemers filtered by post relationship. Then you can insert the foto-medewerker field in the loop of the View of Werknemers. After that, insert the View of Werknemers in the Elementor template for single Posts.

#1142392

My issue is resolved now. Thank you!