Posts in Sidebar 4.3.0 released

Posts in Sidebar 4.3.0 has been released with some interesting new features for users. Let’s take a look into that.

From the changelog

### 4.3.0 ###

* Add option to get posts from the current tag, when on a single post.
* Add option to assign post classes via `get_post_class()`.
* Fix empty p tag when no excerpt or no image.
* Fix post modification date/time.
* Minor fixes.

Add option to get posts from the current tag, when on a single post

As you know, Posts in Sidebar lets you modify the query when you are in single post page. When in this situation, the plugin can display a different set of posts, for example related to the current post. The new option lets you get posts from one of the tags of the current post.

Since a WordPress post can have multiple tags, you can choose one of the following methods to pick up the tag:

  • the tag with the lowest initial letter. So, e.g., if you have the tags love, nature, and earth, the plugin will use earth;
  • the tag with the lowest ID. So, if the IDs are the following:
    • love = 35
    • nature = 21
    • earth = 52

    the plugin will use nature.

To use the lower initial letter behavior, leave unchecked the Sort tags option; otherwise activate it.

Add option to assign post classes via get_post_class()

When building the HTML list of posts in the widget, the plugin uses a own set of classes. Starting from 4.3.0 version, you can add other classes, namely the classes that WordPress itself uses. Activate “Add the WordPress standard classes to the post in the widget” option to make this.

Other changes

Other minor changes have been made:

  • Fix empty p tag when no excerpt or no image. The plugin should not display an empty p HTML tag in the source code of the page when there is no excerpt and no image.
  • Fix post modification date/time. The displaying of modification date should work fine now. Before of this fix, the plugin retrieved the modification date in a wrong way.
  • Minor fixes. Minor fixes and edits have been made.

Enjoy!

Author: aldolat

A WordPress fanatic.

Leave a Reply

Your email address will not be published. Required fields are marked *