How to Display Related Posts Using Dynamic Field Widget
This tutorial fully explains the process of showcasing related posts using JetEngine functionality for the Elementor editor.
Set “one-to-one”, “many-to-many,” and “one-to-many” relations between the posts and custom post types and display particular posts related to the specific publication using the Dynamic Field widget of JetEngine.
Start by setting the post relations between the posts of different types. You can take a look at the appropriate tutorial to find out how this can be done. In our case, we establish “one-to-many” post relations, because there are one author and some of his posts.
![post relations](https://crocoblock.com/knowledge-base/wp-content/uploads/2023/01/post-relations.png)
Now we have to create a Single parent post template in Crocoblock > My Library > Single tab and display child posts.
![create single post template](https://crocoblock.com/knowledge-base/wp-content/uploads/2023/01/create-single-post-template.png)
In the Elementor editor, drop the Dynamic Field widget in a certain section and set appropriate adjustments. In the Content block, we choose the Source: Meta Data and the Meta Field: Child Posts.
![dynamic field widget in elementor with acf field](https://crocoblock.com/knowledge-base/wp-content/uploads/2023/01/dynamic-field-settings.png)
Then, we enable the Filter field output option and set the Callback: Related posts list. Also, we add links to related posts and specify the HTML tag. The last thing we need to do is click the “Save” button.
![dynamic field widget in elementor with acf field](https://crocoblock.com/knowledge-base/wp-content/uploads/2023/01/dynamic-filter-field-output.png)
After that, we go to the “Authors” custom post type and view Alan Black’s related posts.
![author custom post](https://crocoblock.com/knowledge-base/wp-content/uploads/2023/01/author-custom-post.png)
Now you know how to display related posts using JetEngine Dynamic Field widget.