WPThumbs
Themes Plugins By purpose By industry Best-of lists Fix it guides
Free Plugin by Sudar Muthu v3.2.1

Posts By Tag

Provide sidebar widget, shortcode and template functions that can be used to display posts from a set of tags using various options in the sidebar or …

Posts By Tag

The facts

Rating
3.8★ from 15
Active installs
1k+
Price
Free
Last updated
13 Oct 2021
Added
Jul 2009
Requires WP
4.0
Tested up to
WP 5.8.15
Downloads
81,241

Our analysis

AI-assisted

Posts By Tag is a WordPress plugin that allows you to display posts in the sidebar based on specific tags. You can configure multiple widgets, each with different tag settings, and the plugin can automatically retrieve tags from the current post or custom fields.

The plugin also provides a shortcode and template function for more flexible placement of posts. It includes options for displaying post excerpts, thumbnails, authors, and dates, while caching posts to reduce database queries.

Best for: This plugin suits WordPress users looking to enhance their sidebar with tag-based post displays.

What it does well

  • Provides a configurable sidebar widget for displaying posts by tags
  • Supports multiple widgets with different tag configurations
  • Includes options for displaying excerpts, thumbnails, and author information
  • Allows for shortcode and template function usage
  • Caches posts to reduce database load

Where it falls short

  • Limited information on user experience or support
  • No recent updates since October 2021

Verdict

Posts By Tag offers useful functionality for displaying posts by tags in sidebars, but its lack of recent updates may be a concern for some users.

From the developer

Sudar Muthu's own description of Posts By Tag, lightly tidied.

Posts By Tag WordPress Plugin, provides sidebar widgets which can be used to display posts from a specific set of tags in the sidebar.

These tags can be specified in the widget or the Plugin can automatically retrieve them from the current post tags, post slug or form custom field. The custom fields can be specified in the edit post or page screen.

You can also use shortcode or template function to display the posts.

The Plugin caches the posts of each widget separately, and issues database queries only when needed. This will reduce the amount of database queries involved for each page load and will therefore be light on your server. If this clashes with other Plugins, you also have an option to disable it.

Features

Sidebar Widget

Posts By Tag Plugin provides a sidebar widget which can be configured to display posts from a set of tags in the sidebar. You can have multiple widgets with different set of tags configured for each one of them.

Each widget allows you to choose

  • The set of tags from where posts should be selected (or excluded)
  • The number of posts to be displayed.
  • Whether to pick the tags from current post
  • Whether to pick the tags from current post slug
  • Whether to pick the tags from current post’s custom field
  • Option to enable post excerpts to be displayed with post titles.
  • Option to display post thumbnail if present.
  • Option to display post author.
  • Option to display post date.
  • Option to display post content.
  • Choose the order in which the posts should be displayed.
  • Option to exclude current post/page.
  • Option to specify the target attribute for links
  • Option to display links to tag archive pages.
  • Option to disable the cache if needed.
  • Option to enable Google Analytics tracking on the links

To add the widget, log into your WordPress admin console and go to Appearances -> Widgets. You will find the widget with the title “Posts By Tag”. Drag and drop it in the sidebar where you want the widget to be displayed.

Template function

In addition to using the widget, you can also use the following template function to display posts from a set of tags, anywhere in the theme.

posts_by_tag($tags, $options);

The following options can be passed in the $options array

  • $tags (string) – set of comma separated tags. If you leave this empty, then the tags from the current post will be used.
  • $options (array) – set of options. The following are the fields that are allowed
    • number (number) – default 5 – number of posts to display
    • tag_from_post (bool) – default FALSE – whether to pick up tags from current post’s tag
    • tag_from_post_slug (bool) – default FALSE – whether to pick up tags from current post’s slug
    • tag_from_post_custom_field (bool) – default FALSE – whether to pick up tags from current post’s custom field
    • exclude (bool) – default FALSE – Where to include the tags or exclude the tags
    • excerpt (bool) – default FALSE – To display post excerpts or not
    • excerpt_filter (bool) – default TRUE Whether to enable or disable excerpt filter
    • thumbnail (bool) – default FALSE – To display post thumbnails or not
    • thumbnail_size (string/array) – default thumbnail – Size of the thumbnail image. Refer to https://codex.wordpress.org/Function_Reference/get_the_post_thumbnail#Thumbnail_Sizes
    • order_by (date,title, random) – default date – Whether to order by date or by title or show them randomly
    • order (asc,desc) – default desc – To change the order in which the posts are displayed.
    • author (bool) – default FALSE – To display author name or not.
    • date (bool) – default FALSE – To display post date or not.
    • content (bool) – default FALSE – To display post content or not.
    • content_filter (bool) – default TRUE Whether to enable or disable content filter
    • exclude_current_post (bool) – default TRUE – To exclude current post/page.
    • tag_links (bool) – default FALSE – To display link to tag archive page or not.
    • link_target (string) – default empty – target attribute for the permalink links.

    In addition to the above options the following options are available in the Pro addon

    Read the full description on the official page →

Tagged as

Alternatives

Other plugins for custom content structures.

Ad Inserter

Manage Google AdSense ads, banners, ad rotation, sticky widgets, AMP ads, ads.txt, tracking, header and footer...

Free 300k+ installs 4.9★ (2,428)
Advanced Custom Fields

ACF helps customize WordPress with powerful, professional and intuitive fields. Proudly powering over 2 millio...

Free 2M+ installs 4.5★ (1,438)
Simple Custom Post Order

Easily reorder posts, pages, custom post types, and taxonomies with intuitive drag-and-drop sorting in the Wor...

Free 300k+ installs 4.8★ (569)
WP Activity Log

The #1 user-rated activity log plugin for event logging, activity monitoring and change tracking.

Free 300k+ installs 4.7★ (488)
Custom Post Type UI

Admin UI for creating custom content types like post types and taxonomies

Free 1M+ installs 4.6★ (276)