To create a List of Related Posts, we can use any of the following methods:
Using the Divi Theme Builder (recommended).
Using the Divi Builder on each individual post.
Using a 3rd Party plugin.
Create a list of Related Posts using Divi Theme Builder
Go to WordPress Dashboard → Divi → Theme Builder.
Create or Edit the All Posts Template → Custom Body.
In the All Posts Template, insert a new Section.
Insert a 1 Column Row.
Insert a Text module and add the
Related Posts
text.Set the text to be an H2 Heading.
Insert the Blog Module.
Open the Blog module's settings window and set the following options in the Content option group:
Post Type: Posts;
Post Count: 3;
Included Categories: Current Category;
In the Elements option group, deactivate the Show Pagination option;
In the Blog module's settings → Desing → Layout, choose Grid (optional step).
The result:
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.
Go to WordPress Dashboard → Posts All Posts.
Create or Edit any of the existing Posts with the Visual Builder.
In the single post layout, insert a new Section.
Insert a 1 Column Row.
Insert a Text module and add the
Related Posts
text.Set the text to be an H2 Heading.
Insert the Blog Module.
Open the Blog module's settings window and set the following options in the Content option group:
Post Type: Posts;
Post Count: 3;
Included Categories: Current Category;
In the Blog module's settings → Desing → Layout, choose Grid (optional step).
Create a list of Related Posts using a 3rd party plugin
Install the YARPP – Yet Another Related Posts Plugin.
After installing and activating the plugin, go to WordPress Dashboard → Settings → YARPP.
Set the following settings for The Pool section:
Post types to include: Posts;
Display sticky posts: checked;
Limit the same post type: checked;
Set the following settings for The Algorithm section:
Match threshold:
1
;Titles: Do not consider
Bodies: Do not consider
Categories: Consider
Tag: Consider
Project Categories: Do not consider
Project Tags: Do not consider
Set the following settings for the Automatic Display Options section:
Automatically display related content on: uncheck everything;
Maximum number of posts:
3
;Theme: Thumbnails
Thumbnail Size: you can choose
et-pb-post-main-image (400x250)
(optional step).
Edit the single post or the All Posts Theme Builder template.
Choose where to display the YARPP related posts and insert the Code module.
Place this shortcode in the Code module:
[yarpp]
.