Related posts in a responsive grid below an article, with featured images, excerpts and author.
SoftIcon Related Posts shows your readers what to read next. It finds similar posts that share categories, tags or any custom taxonomy with the current article, ranks them by relevance, and displays them below your content in a clean, responsive grid, list or minimal layout.
Every related post is an internal link. More internal links help visitors discover more of your content, keep them on your site longer and help search engines understand how your articles connect.
It works the moment you activate it: related posts appear below every post with no setup. When you want more control, use the settings page, the Related Posts block, the shortcode or the sidebar widget.
More tutorials: setup, the block, layouts and design, smart matching, pages and WooCommerce and every setting explained. Or watch the whole playlist.
[softicon_related_posts] with every option available as an attributeORDER BY RAND() querysrcset, so phones download small images[softicon_related_posts posts="4" columns="2" relation="tag" orderby="relevance" layout="list" title="You may also like"]
Supported attributes: post_id, posts, columns, relation (category, tag, both, all), orderby (relevance, rand, date, modified, comment_count, title), title, show_categories, show_image, show_excerpt, show_date, show_author, show_read_more, layout (grid, list, minimal), image_ratio (fixed, 16-9, 4-3, 3-2, 1-1), card_style (none, border, shadow), radius, hover_zoom, title_color, text_color, card_bg. Any attribute you leave out uses the value from the settings page.
The block’s editor script is built from source. The full source code, including src/ and the build setup, is on GitHub: github.com/softiconai/softicon-related-posts. Pull requests are welcome.
Copy templates/posts.php or templates/category.php into yourtheme/softicon-related-posts/ to change the markup.
alrp_related_posts_query_args – filter the related posts queryalrp_related_posts_html – filter the final HTMLalrp_template_path – change which template file is loadedalrp_cache_ttl – cache lifetime in seconds (default one day)alrp_relevance_weights – points per shared term for “Most relevant” (default category 1, tag 2)alrp_related_post_ids – filter or reorder the final list of related post IDsalrp_auto_display – return false to stop the automatic list on a postalrp_wrapper_classes / alrp_wrapper_style_vars – add classes or CSS variables to the wrapperalrp_default_settings, alrp_setting_choices, alrp_sanitize_settings – add your own settingsalrp_block_atts – map extra block attributes to settingsalrp_render_settings – adjust the settings a single list is rendered withalrp_item_after_title / alrp_item_end (actions) – add markup inside each card, e.g. a pricealrp_video_urls – tutorial video URLs shown on the settings pageSettings page (JavaScript, @wordpress/hooks): alrp.settings.tabs adds tabs, alrp.settings.layouts and alrp.settings.layoutArt add layout tiles, alrp.block.inspector adds panels to the block sidebar.
Everything above is free. SoftIcon Related Posts Pro is an optional add-on with a one-time price. See Related Posts Free vs Pro for the full comparison and Related Posts Pricing for the plans. Pro adds:
Watch the Pro overview or a tutorial for each Pro feature in the playlist.
Missing a feature? Found a bug? Please open a topic in the support forum or an issue on GitHub. We read every message.