Related Posts by WPBrigade will add related posts thumbnails after the post. This Related Posts Plugin allows to customize thumbnail sizes, display settings and type of relation.
By default it uses generated by WordPress thumbnail for the first image appeared in the post, that was uploaded on the server with sizes as set in Media settings. You can select between ‘thumbnail’ and ‘medium’ size options. In addition if your theme supports Post Thumbnails feature introduced in WordPress 2.9 you can specify custom thumbnail size. You can also specify post custom field name to be used as thumbnails source.
Thumbnails are arranged in columns under the post with related posts title/excerpt under each post thumbnail. Colors of background, border, text, text sizes, background on mouse over, title and excerpt length can be customized. See screenshot.
You can specify number of related posts to display, start date, categories to show on and to include, top text, style settings, default image URL. You can select type of relation – categories, tags, categories and tags, random or custom taxonomies. You can specify where to display related posts – choose page type (main or single), post type and select categories. You can turn off automatic appending to the end of post and use <?php get_related_posts_thumbnails(); ?> php tag in the Loop of your theme. Related Posts thumbnails sidebar widget is also available. You can use [related-posts-thumbnails] shortcode in the post body.
** This Related Posts plugin has Gutenberg block **
- Thanks to Adnan for giving life to this plugin.
- This plugin has Russian version
- Thanks to Li-An this plugin has French version
- Thanks to Gidibao this plugin has Italian version
- Thanks to Kuzu this plugin has Turkish version
- Thanks to Mirko this plugin has German version
- Thanks to Bejana for Indonesian translation
This plugin provides 1 block.
- Related Posts Thumbnails Plugin for WordPress
- Extract zip in the /wp-content/plugins/ directory.
- Activate the plugin through the ‘Plugins’ menu in WordPress.
- Customize plugin settings at menu Related Posts. Find it at the left bottom of the side menu in wp-admin.
How does this plugin decide which image to use as post thumbnail?
If your theme supports WordPress Posts Thumbnail feature and post has a specified Post Thumbnail as seen on Edit Post page, when this image will be used as a post thumbnail in related posts. The size of the image is determined by plugin setting ‘Post-thumbnails name’.
If your theme does not support Post Thumbnail feature or post has no assigned thumbnail, when the first image on the post will be used as a thumbnail.
Does plugin support external images, e.g. uploaded on Flickr?
There is no direct support of external images in the current version of the plugin. You can use custom field option. Or you can use https://wordpress.org/extend/plugins/generate-post-thumbnails/ or similar plugin to save external images as post thumbnails.
What is the default image URL?
If there are no images of the specified size in the post, or file does not exist on the server the default image will be used as a post thumbnail. You can upload your image on server and specify its URL in plugin settings.
Contributors & Developers
“Related Posts Thumbnails Plugin for WordPress” is open source software. The following people have contributed to this plugin.Contributors
“Related Posts Thumbnails Plugin for WordPress” has been translated into 9 locales. Thank you to the translators for their contributions.
Interested in development?
1.9.1 – 2021-04-08
- Bugfix: Mobile view layout.
- New Feature : Introducing Lazy Loading filter. Use
rpt-lazy-loadingfilter to enable the lazy loading for thumbnails. By default it’s false.
- Compatibility : Compatible with PHP 8.0
1.9.0 – 2021-03-22
- New Feature : Filter to add custom sizes of thumbnails to choose from.
- New Feature : added ‘rpt_exclude_post’ filter to exclude posts from showing as Related Posts.
- Enhancement : Shortcode attribute to exclude posts from showing as Related Posts.
- Compatibility : Compatible with WordPress 5.7
1.8.3 – 2020-03-21
- New Feature : Filter for related posts background image.
- New Feature : Add option to disable related posts on mobile.
1.8.2 – 2019-10-16
- New Feature : Filter for related post top text.
- New Feature : Filter to prevent image size check on inner post images.
- New Feature : Filter to prevent related posts on builders.
- New Feature : Filter to remove related post with empty custom field.
1.8.1 – 2019-06-25
- Bug Fix : Thumbnails are not showing when post thumbnail source is selected.
1.8.0 – 2019-06-25
- New Feature : Added AMP support.
- New Feature : Filter to disable related posts on AMP.
- New Feature : Filter to style list for related posts on AMP.
- Refactor : Remove unused assets for gutenberg block.
- Bug Fix : Fix query for sorting latest posts.
- Bug Fix : Fix empty vairable check on custom field.
1.7.2 – 2019-06-10
- Bug Fix : Sorting issue when latest posts option selected.
1.7.1 – 2019-05-27
- Bug Fix : Compatibility issue with php 5.3 in newly Gutenberg block.
1.7.0 – 2019-05-24
- New Feature : Added Gutenberg block for Related posts.
- Bug Fix : Empty container class name.
- Bug Fix : Unable to show related posts on empty custom field.
- Compatibility : Compatible with WordPress 5.2
1.6.6 – 2019-03-18
- Enhancement : Add
posts_sortattributes in [related-posts-thumbnails] shortcode.
- Compatibility : Compatible with WordPress 5.1
- Enhancement : Compatible with PHP 7.3
1.6.5 – 2018-06-14
- Bug Fix : Last update broke layout because of direct function usage in templates.
1.6.4 – 2018-06-06
- Feature : Add sort by option for Related Posts.
- Enhancement : Add class attribute in list styling, if someone wants to style list Related Posts.
- Enhancement : Move thumbnails source option to its own section.
- Enhancement : Minor style changes in settings page.
- Bug Fix : Fonts are unable to change in list output style.
- Bug Fix : Unclosed div making layout break.
- Bug Fix : Left content alignment is breaking layout.
- Bug Fix : Content of alt tag of Related Posts image is breaking layout.
1.6.3 – 2018-03-26
- Feature : Multilingual Compatible. All text is now translateable.
- Feature : Add filter to left, right or center align Related Posts.
- Feature : Add filter to change priority of Related Posts under posts content.
- Enhancement : Add ALT tag in Related Posts thumbnails.
- Enhancement : Replace input types of some fields form text to number.
- Enhancement : Replace default image URL to gallery image selection.
- Enhancement : Replace some ambiguous field’s titles with more clear titles.
- Bug Fix : Fix the undefined index notice on widget title.
- Bug Fix : Fix the image issue in widget.
- Bug Fix : Fix the image issue in thumbnails of Related Posts.
1.6.2 – 2018-02-27
- Feature : Change inline style to class.
- Feature : Add RTL support.
- Bug Fix : Undefined variable on shortcode.
- Bug Fix : Fix encoding tag on excerpt.
- Enhancement : Add color picker on color settings.
- Enhancement : Add date picker on date settings.
- BugFix: Center align output and image.
- Compatible with 4.8
- Multiple bugfixes
- Fixed Category Settings bug.
- [BugFix] Improved.
- [BugFix] Top Text title allows h1 to h6 tags now.
- [BugFix] Removed deprecated constructors for Related Posts widget. Compatible with PHP 7.0
- Major UI changes for admin settings and compatibility with WP 4.5
- compatibility with WP 4.4
- backwards compatibility with WP 2.9
- Added support of custom post types and custom taxonomies
- Added multibyte strings support
- Fixed a bug with double quotes in title
- Fixed a bug with stripping shortcodes
- Added Indonesian translation
- Fixed bug: when not all categories selected and tags only, wrong behavior
- Optimized performance
- Searching for post thumbnail in post body if no assigned Featured Image was set
- Added possibility to show only posts with thumbnails for themes, that support Post Thumbnails
- Removed filter, responsible for image existence
- Fixed bug, if category has 1 post and relation is based on categories, than no posts will be shown
- Font-family can have quotes in settings
- Added Turkish and German versions
- Added clean HTML option without plugin CSS, fixed background color change
- Fixed relative custom url
- Fixed selection of categories on plugin settings page
- French version updated
- Added option to set theme php resizing script
- Improved plugin performance with high number of posts
- PHP configuration allow_url_fopen is taken into account
- Added start date to exclude old posts
- Fixed display, only posts now
- Separated categories – which are displayed amoung thumbnails and on which thumbnails are displayed
- Random relation, for random posts display
- PHP 4.3 compatible now according to WordPress requirements
- tested with WordPress 3.0
- Thanks to Li-An it now has French version.
- Excerpts will be generated if no excerpt were defined.
- Developer mode to see debugging info in HTML source.
- added php tag for use in theme
- added option to turn off automatic appending
- set title length 0 for no title
- added excerpt
- added sidebar widget
- added shortcode
- removed PHP warning on settings page somebody may experience
- full HTML support in top text field
- removed PHP warnings for getimagesize and file if wrong header was received
- fixed Categories and Tags confusion (when you selected Categories relation was based on Tags and vice versa)
- added Categories option to select specific categories
- added post custom field name option as a source for thumbnails
- Released plugin initial version