All Collections
FAQ's and Troubleshooting
How to create a list of Related Posts for a single post page with Divi
How to create a list of Related Posts for a single post page with Divi

Dispaying a list of related posts, on single post pages.

Eduard Ungureanu avatar
Written by Eduard Ungureanu
Updated over a week ago

To create a List of Related Posts, we can use any of the following methods:

  1. Using the Divi Theme Builder (recommended).

  2. Using the Divi Builder on each individual post.

  3. Using a 3rd Party plugin.

Create a list of Related Posts using Divi Theme Builder

  1. Go to WordPress Dashboard → Divi → Theme Builder.

  2. Create or Edit the All Posts Template → Custom Body.

  3. In the All Posts Template, insert a new Section.

  4. Insert a 1 Column Row.

  5. Insert a Text module and add the Related Posts text.

  6. Set the text to be an H2 Heading.

  7. Insert the Blog Module.

  8. Open the Blog module's settings window and set the following options in the Content option group:

    1. Post Type: Posts;

    2. Post Count: 3;

    3. Included Categories: Current Category;

    Blog module content option group

  9. In the Elements option group, deactivate the Show Pagination option;

    Blog module elements option group

  10. In the Blog module's settings → Desing → Layout, choose Grid (optional step).

The result:

Blog module related posts

Note 1: Following the above steps, the Blog module will only show posts from the same category with the post in view.

Create a list of Related Posts using Divi Builder on each Single Post

Note 2: The same steps used for the Theme Builder All Posts template can be followed, with the difference that the changes are done on each post.

  1. Go to WordPress Dashboard → Posts All Posts.

  2. Create or Edit any of the existing Posts with the Visual Builder.

  3. In the single post layout, insert a new Section.

  4. Insert a 1 Column Row.

  5. Insert a Text module and add the Related Posts text.

  6. Set the text to be an H2 Heading.

  7. Insert the Blog Module.

  8. Open the Blog module's settings window and set the following options in the Content option group:

    1. Post Type: Posts;

    2. Post Count: 3;

    3. Included Categories: Current Category;

  9. In the Blog module's settings → Desing → Layout, choose Grid (optional step).

Create a list of Related Posts using a 3rd party plugin

  1. After installing and activating the plugin, go to WordPress Dashboard → Settings → YARPP.

  2. Set the following settings for The Pool section:

    1. Post types to include: Posts;

    2. Display sticky posts: checked;

    3. Limit the same post type: checked;

    Yarpp the Pool section

  3. Set the following settings for The Algorithm section:

    1. Match threshold: 1;

    2. Titles: Do not consider

    3. Bodies: Do not consider

    4. Categories: Consider

    5. Tag: Consider

    6. Project Categories: Do not consider

    7. Project Tags: Do not consider

    Yarpp the Algorithm section

  4. Set the following settings for the Automatic Display Options section:

    1. Automatically display related content on: uncheck everything;

    2. Maximum number of posts: 3;

    3. Theme: Thumbnails

    4. Thumbnail Size: you can choose et-pb-post-main-image (400x250) (optional step).

    Yarpp Automatic Display Options section

  5. Edit the single post or the All Posts Theme Builder template.

  6. Choose where to display the YARPP related posts and insert the Code module.

  7. Place this shortcode in the Code module: [yarpp].

    Use the Yarpp shortcode
Did this answer your question?