Generate Tags, Categories, Taxonomy Based WordPress Related Posts

Display Wordpress Related Posts Based on Tags, Categories, Taxonomy, Custom Post Types IDs

Do you know internal linking is the key to improve your rankings in search results especially in google? Linking manually for each and every post relevant to content is not an easy task, but we can do this using free wordpress plugin known as “Display Posts Shortcode” is a powerful and free wordpress plugin will automatically generate and display related posts based on any supplied parameter such as wordpress tags, categories, category slug, taxonomies and posts ID using different shortcodes and filters with various orders.

“Display Posts Shortcode” will display related posts any where on the post, page or even in sidebar widgets with the help of simple shortcodes. The Display Posts Shortcode is light weight wordpress plugin to allow users to easily display lists of posts without knowing PHP or without editing template files.

Why ‘Display Posts Shortcode’ plugin is better than any other wordpress plugins?

There are many related posts plugin available in the wordpress repository, but those are spoil your server resources and slow down your wordpress installation, but display posts shortcode plugin won’t. Here is the step by step instructions about how to display advanced related posts by using various parameters.

Go to your wordpress admin and navigate to Plugins > Add New menu and install & activate the Display Posts Shortcode plugin.

Install Display Posts Shortcode From WordPress Repository

Install Display Posts Shortcode From WordPress Repository

Activate the plugin

Activate Display Posts Shortcode WordPress Plugin

Activate Display Posts Shortcode WordPress Plugin

One you have installed and activated the plugin, you won’t to find any plugin related settings or documentation available about how to configure this plugin anywhere on your wordpress admin. You have to remember the shortcodes to generate the related posts or bookmark this page for future reference.

Here is the list of shortcodes with advanced settings about how to generate related posts based on various parameters based on tags, categories, taxonomies, post id’s.

How to display related posts based on post id’s?

Related Posts Based on Custom IDs

Above shortcode will generate and display custom related posts based on our blog posts id 2791,2755,237,2287 and 1752 as you seen just below. Don’t forget to replace the post id’s of your blog.

How to display related posts based on category slug?

Related Posts Based on Category Slugs

Above shortcode will display all the posts from specific category slug. In this example we have set the category slug ‘html-templates‘ from our website. So, it populates posts from “HTML Templates” category as shown below.

By default it will populates 10 recent posts with “<li>” wrapper in the supplied category slug. Also you can pass any number of category slugs separated by comma like category-slug 1, category-slug 2, category-slug 3 so on with in the double quotes as appears above.

Here is the another variation with ‘ol’ wrapper

Related Posts Based on OL Wrapper

  1. Atlas Admin Responsive Full AJAX Enabled HTML Theme / Template Review
  2. Centric Bootstrap 3 Minimal Admin HTML Template With RTL Support
  3. 15+ Best Bootstrap 3 Premium / Free App Landing Page HTML Templates
  4. Clearnizr Responsive Frontend + Admin HTML Template / Theme
  5. MonsterAdmin Dark Scheme Responsive Admin HTML Template / Theme
  6. Luna Responsive Dark Style Flat Admin HTML Theme / Template
  7. 10+ Best of Bootstrap Compatible Minimal Free Blogging HTML Templates
  8. Inspinia Responsive HTML5 Dashboard / Admin Template
  9. 10+ Best Responsive Free Multipurpose HTML5 Website Templates
  10. Bemat Material Design Responsive Admin HTML Template / Theme

Yet another variation with ‘div’ wrapper

Related Posts Based on DIV Wrapper

One more variation with ‘offset’ tag

Also you can passover (omit) number of posts by using offset tag. For example if you don’t want to display recent 5 posts from supplied category slug add offset=”5″ inside the shortcode with in the double quotes. It will automatically omits the recent 5 posts and displays the rest of the posts. This trick is applicable for “<li>” and “<ol>” tags as well.

Related Posts Based on DIV Offset

How to generate specific number of posts based on category slug?

Limited Number of Related Posts

The above shortcode display only the 5 recent posts from the supplied category slug as shown below.

Note: This plugin also available for blogs by simply dropping shortcode in your page’s content area, but unfortunately you won’t be able to use any of the filters listed in further customization since this requires customizing your theme, which isn’t allowed on blogging platform.

Here is the list of many useful shortcodes and filters to display related posts based on different combinations and use them wisely according to your needs.

Leave a Comment

All about WordPress / Joomla / Drupal CMS & HTML Templates

All about WordPress / Joomla / Drupal CMS & HTML Templates

Be the first person to get notified about latest and greatest premium / free WordPress themes reviews, WordPress tips, Joomla templates, admin & frontend HTML templates and lot more.

You have Successfully Subscribed!