Posts in Sidebar

Fork me on GitHub

This plugin creates a new widget for your sidebar. In this widget you can display a list of post using author, category, tag, post format, custom post type, and so on. You can also display the featured image, the tags and also a link to the archive page. A bunch of useful options are also available.

Documentation, Help & Bugs

The plugin's documentation is hosted on GitHub. Please refer to it before asking for support.

If you need help, please use WordPress forum. Do not send private email unless it is really necessary.

If you have found a bug, please report it on GitHub.

This plugin is developed using GitHub. If you wrote an enhancement and would share it with the world, please send me a Pull request.

Credits

I would like to say Thank You to all the people who helped me in making this plugin better.

Translations of the plugin

This plugin has been translated into these languages:

  • Persian, thanks to AlirezaJamali
  • French, thanks to Thérèse Lachance and cilya
  • Hebrew, thanks to Ahrale
  • Serbo-Croatian, thanks to Borisa Djuraskovic
Name of the plugin: Posts in Sidebar
Plugin version: 1.21
This plugin requires WordPress 3.5
Tested up to WordPress 4.0
Last updated: 19 settembre 2014 (1 mese ago)
Compatibility: 100% with WordPress 4.0
Tags: Post, sidebar, widget
Rating: 5 stars

Latest changes

  • NEW: Added an option to exclude the current post in single post page or the current page in single page.
  • Added an alert in the widget admin if the current theme doesn't support the Post Thumbnail feature.

Download

You can get a copy from the page in the official repository: Posts in Sidebar. This plugin has been downloaded 46.846 times.

Author

Author’s name: Aldo Latino
Profile on wordpress.org: Aldo Latino

Screenshots

  1. posts-in-sidebar screenshot 1

    The widget panel

  2. posts-in-sidebar screenshot 2

    A simple output of the widget: title, excerpt and link to the entire archive.

  3. posts-in-sidebar screenshot 3

    Displaying the featured image, floating left.

  4. posts-in-sidebar screenshot 4

    The same image as before, but in larger size.

  5. posts-in-sidebar screenshot 5

    The introductory text for the widget.

  6. posts-in-sidebar screenshot 6

    Displaying the full set of items (categories, date, author, tags, and so on).

Changelog

1.22-dev

  • Updated the Hebrew translation (thanks to Ahrale).
  • Added Serbo-Croatian language (thanks to Borisa Djuraskovic).

1.21

  • NEW: Added an option to exclude the current post in single post page or the current page in single page.
  • Added an alert in the widget admin if the current theme doesn't support the Post Thumbnail feature.

1.20

  • FIX: Now the dropdown menu for post type selection correctly displays all the public post types (thanks to pathuri).

1.19

  • NEW: Selection of categories and tags is in form of comma separated values. This will prevent server load in case there are too many terms. Also, now the user can get posts from multiple categories.

1.18

  • NEW: The section with author, date, and comments can now be displayed before the post's excerpt.
  • Various small improvements.

1.17

  • NEW: Added option to exclude posts with certain IDs.
  • NEW: Added option to display image before post title.
  • NEW: Completed options for Order by parameter.
  • Now the plugin requires at least WordPress 3.5.
  • Code optimization.
  • The class for the custom container class is now sanitized.
  • The custom container receives now only a single CSS class.
  • Completed the PhpDocumentor tags.

1.16.1

  • NEW: The cache can be flushed now.
  • Updated Hebrew translation.

1.16

  • NEW: Added a field to define a class for a container.
  • NEW: Now the user can define a cache when retrieving posts from database.

1.15.1

  • FIX: The HTML for ul is now fixed.

1.15

  • NEW: The posts can be retrieved using the ID (props by Matt).
  • NEW: The list of posts can now be displayed in a numbered list (props by Sean).
  • NEW: The excerpt can be displayed up to the "more" tag (props by EvertVd).
  • FIX: There are no more empty spaces after "Category" or "Tags" text.
  • The widget panel has been slightly enlarged.
  • Deleted unused options in widgets dropdown menus.
  • Minor refinements.

1.14

  • FIX: fetching posts from tags now works correctly.
  • Updated Hebrew translation, thanks to Ahrale.

1.13

  • NEW: Added option for adding user defined styles (props by Ahrale).
  • NEW: Added option for setting the space around the image (props by Ahrale).
  • NEW: Added check for rtl languages (the arrow can now be from right to left, props by Ahrale).
  • NEW: Added option for ordering by "Menu order" and "Comment count" (props by hypn0ticnet).
  • Updated Hebrew translation (thanks to Ahrale).
  • Minor bug fixings.
  • Minor enhancements.

1.12

  • NEW: added option for rich content.
  • NEW: added option for displaying the custom fields value/key of the post.
  • NEW: added option for removing bullets and extra left space for the list elements.
  • Code improvements.

1.11

  • FIX: image align has been fixed (thanks to Clarry).

1.10

  • FIX: If the post is password protected, now the post password form is displayed before showing the post.
  • NEW: Now the user-defined excerpt can display a paragraph break, if any.
  • NEW: Added Hebrew translation, thanks to Ahrale.
  • Other minor changes.

1.9

  • NEW: The space after each line can be defined via widget interface.
  • NEW: The featured image can be aligned with text.
  • NEW: Added apply_filters where needed.
  • FIX: HTML structure for the archive link is now W3C valid, thanks to cilya for reporting it.
  • Updated French translation, thanks to cilya.
  • Minor bug fixings.

1.8

  • New: added post format as option to get posts.
  • New: added option for link to custom post type archive.
  • New: added option for link to post format archive.
  • Other minor changes.

1.7

  • New: The widget can display the author of the post.
  • New: Now the user can choose which type of posts to display: posts, pages, custom post types, etc.
  • New: The widget can display the full content (as in single posts).
  • New: Now the user can add a custom "Read more" text.
  • Added French translation by Thérèse Lachance.
  • Code improvements and sanitization.

1.6

  • New: if in single post, the user can now stylize the current post in the sidebar (feature request from lleroy).

1.5

  • New: Now the title of the widget can be linked to a user-defined URL (feature request from Mike).

1.4

  • New: Now the user can add an introductory text to the widget (feature request from Mike).

1.3

  • New: The date can be linkified or not.
  • New: The widget panel now shows empty categories and tags.
  • New: The 'No posts yet.' text can be customized.
  • Bug fix: The markup no longer shows empty containers.
  • Some minor enhancements.

1.2.1

  • Changed the minimum required WordPress version to 3.3.
  • Added Persian language, thanks to AlirezaJamali.

1.2

  • Enhancement: Now the user can display the entire content for each post. Feature request from sjmsing
  • Moved screenshots to /assets/ directory.

1.1

  • Enhancement: Now it is possible to show the categories of the post
  • Enhancement: Now it is possible to exclude posts coming from some categories and/or tags
  • Moved the widget section into a separate file.

1.0.2

  • Updated Credits section.

1.0.1

  • Small typo in readme.txt.

1.0

  • First release of the plugin.

Contributors

aldolat.

Other Notes

Support

You can get support in this forum.

Donations

Say your “Thanks!” to the developer with a small donation.





  • Pingback: Posts in Sidebar è disponibile | aldolat

  • Pingback: Posts in Sidebar in lingua persiana | aldolat

  • i00i

    Hi I think your widget is perfect for my needs however i cant seem to get it to work! I’m using the new twenty twelve theme with enabled thumbnails. I’ve installed your posts in sidebar widget and for some reason cant see it in front end – this is very strange… I’m trying it on my localhost – could this be a problem?

    • http://www.aldolat.it/ aldolat

      What don’t you see in your sidebar? The widget? Or the featured image (i.e. the post’s thumbnail)? Or the entire widget?

      I’ve just installed this plugin in a totally clean WordPress environment using the Twenty Twelve theme and I can’t reproduce it.

      • i00i

        I cant see the widget itself – nothing, not even the widget title…
        What am I missing here?

        • http://www.aldolat.it/ aldolat

          After installing this plugin, you have to go to Appearance > Widgets. Do you see the widget in the list of available widgets? Have you added the widget to your sidebar?

        • i00i

          Of course. I do see the widget in my admin and have added/dragged it to my widget-ready sidebar. I open it up and choose a category so it will know which posts to show, then click Save, and refresh my front end. Nothing… (no doubt this is not the first widget I’ve installed, which makes it even more frustrating : (
          I’ve also considered maybe the file I’ve downloaded might be corrupt in some way, however if that was the case I wouldn’t see it and be able to activate it…

        • http://www.aldolat.it/ aldolat

          Try to deactivate all the plugins and leave active only Posts in Sidebar. Does it work?

          Another better way is to try the plugin in a totally fresh WordPress installation. Because you’re in a localhost environment, this is simple to do. Try and let me know.

          Also, make sure you’re using the last version of WordPress.

        • i00i

          OK, so I went and installed a new localhost wp and the widget works! I have no idea why it wouldn’t on my own site. Now all I have to do is figure this *small* thing out. And if we’re on the subject I have another question (if I may) – I’ve created a new add_image_size however I don’t see it in the widget featured image thumbnail size… Any thoughts?
          I really appreciate your help

        • i00i

          OK scratch that! found the new image size – all is OK.
          However this is the strangest thing – you will not believe it! I went back to my original localhost site – disabled all plugins – activated yours and clicked Save. Nothing in the front end. Went back to the Widget area and saw that your widget has been removed from my sidebar (in the admin itself!) – how strange is that?!

        • http://www.aldolat.it/ aldolat

          I’m happy reading you solved! :-)

          About the “strangest thing”, if you disable and re-enable the plugin, the widget should be restored in the position you put it. Strange, sure. The plugin erases its own data (number of widgets and their positions included) only if you uninstall it (as every developer should do, but the majority don’t).

        • i00i

          I think it’s more than that – after I enabled the plugin – dragged the widget into sidebar – refreshed the page (still in admin) – widget has been automatically removed from sidebar! What the…

        • i00i

          One last question – is there any way to embed this plugin inside the template as opposed to using as a widget?

        • http://www.aldolat.it/ aldolat

          Of course, like any other theme’s feature.

  • Mike Churcher

    Hi Aldo, just wanted to tell you YET AGAIN how really good your Post in Sidebar really is. I really like the like random setting which jumbles up the posts and allows older posts to be displayed on the sidebar. Suggestion: Underneath the title of the Widget is it possible to allow a short introduction ? It would be good to show the reader what the category is and why it is different from the others. Many thanks, Mike Churcher

    • http://www.aldolat.it/ aldolat

      Hi Mike, good tip, thanks! I’ve just added this new feature to the plugin, so update it either wating for the WordPress notification or manually.