Git Product home page Git Product logo

posts-in-sidebar's Introduction

Posts in Sidebar

Contributors: aldolat
Donate link: https://dev.aldolat.it/projects/posts-in-sidebar/
Tags: post, sidebar, widget, query, wp_query
Requires at least: 4.1
Tested up to: 4.9.2
Stable tag: 4.5.1
License: GPLv3 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.html

This plugin adds a widget to display a list of posts in the WordPress sidebar.

Description

Posts in Sidebar is a plugin for WordPress that lets you show a list of your posts using the criteria you want. This plugin gives you almost all the power of WordPress to retrieve the posts you want and show them in your sidebars.

The plugin has also a shortcode, that you can use in your posts/pages to list your posts.

Once installed, Posts in Sidebar creates a new widget for your sidebar. Add it to your sidebar, select the options to retrieve the posts you want, and save the widget: you're done!

Here are some of the functions you'll have:

  • get posts by authors, categories, tags, post format, or any custom taxonomy;
  • get posts by exact IDs;
  • get posts by meta key/value;
  • get posts by modification date;
  • get posts children of other posts;
  • get posts by search;
  • get posts by recent comments;
  • get posts by complex taxonomies queries;
  • get posts by complex date queries;
  • get posts by complex custom fields queries;
  • get posts from the category of the current post;
  • exclude posts by authors, taxonomies, and so on;
  • control which elements of the posts are displayed (like post thumbnail, taxonomies, meta values, and so on);
  • stylize the output of the widget using custom CSS styles;
  • cache the output of the widget to save queries to the database;
  • ... and much more.

The powerful WordPress class WP_Query is at your fingertips with this plugin. To understand what this plugin can do, take a look at this Codex page: almost all these functions are already included in Posts in Sidebar.

This plugin is free software and it's developed with many efforts: a donation is very appreciated.

Enjoy!

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.

Installation

Installing Posts in Sidebar

This section describes how to install the plugin and get it working.

  1. Upload the posts-in-sidebar directory to the /wp-content/plugins/ directory
  2. Activate the plugin through the Plugins menu in WordPress
  3. Go to the widgets manager and add the newly available widget into the sidebar
  4. Adjust the options to fit your needs
  5. Save and test your results.

Uninstalling

Posts in Sidebar cleans up after itself. All plugin settings will be removed from your database when the plugin is uninstalled via the Plugins screen.

Frequently Asked Questions

Please, see FAQ page on GitHub.

Screenshots

1. The widget panel (all sections are closed).

1. The widget panel (all sections are closed).

2. The widget panel (all sections are open).

2. The widget panel (all sections are open).

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

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

4. Displaying the featured image, floating left.

4. Displaying the featured image, floating left.

5. The same image as before, but in larger size.

5. The same image as before, but in larger size.

6. The introductory text for the widget.

6. The introductory text for the widget.

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

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

Changelog

4.5.1

  • Fixed displaying UTF-8 charset when shortening titles and excerpts.

4.5.0

  • Added options for title and WordPress-generated excerpt length unit.
  • Added filter for HTML arrows in title and excerpt.
  • Added CSS ID selector to ul.

4.4.0

  • Added option to shorten post titles.

4.3.0

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

4.2.0

  • Added option to display the post time and modification time.
  • Aligned shortcode options to main options.
  • Comments are not linked to comments section in the post by default.

4.1

  • Added option to get posts by recent comments.
  • Added option to display all the custom fields of the post.

4.0

  • Added section for retrieving posts from multiple custom fields.
  • Added option for retrieving posts with/without password.
  • Added option for retrieving posts with a certain password.
  • Now panels do not collapse after saving the widget.

3.8.8

  • Added option to get multiple post types.
  • Removed option for displaying query number (it's displayed by default now).

3.8.7

  • Fixed link on titles and title arrows.
  • Fixed a bug where, regardless of the state of "Display the featured image of the post" checkbox, the featured image was always visible if the "Display this section before the title of the post" checkbox were active.

3.8.6

  • Added option to get posts from a certain amount of time ago.
  • Removed empty items from the array for the query.
  • Removed some default settings in custom taxonomy query.

3.8.5

  • Updated the description in "When on single posts, get posts from the current category".

3.8.4

  • Added option to maintain active other parameters when on single post (props by techsmurfy).
  • Added option to sort categories of the main post before getting the posts for the sidebar. When the user wants to get posts from the current category, now the user can choose to fetch posts from the main category of the main post (i.e. the category with the lowest ID) or from the category with the lowest key ID in the array of categories (props by techsmurfy).
  • Added options to move certain parts before/after the title.
  • Removed empty lines in the HTML source.
  • Added Indonesian translation, thanks to Jordan Silaen.

3.8.3

  • Added option to display debugging information to admins only.
  • Now the custom field value for getting posts via custom field key can be the taxonomy ID (props by morfe1).
  • Removed Italian l10n from languages/ directory, because the Italian language pack in GlotPress is completed.
  • Hardening security on i18n.

3.8.2

  • Rewritten function for displaying the Read more.
  • Completely removed the HTML title attribute on links.
  • Aligned widget and shortcode options.
  • Minor corrections.

3.8.1

  • Exclude current post even if the user has specified a list of IDs.
  • Removed title attribute on links.

3.8

  • FIX: The "Rich Content" option for excerpt correctly executes shortcodes now.
  • If the length of a WordPress-generated excerpt is smaller than or equal to the maximum length defined by the user for the excerpt, the "Read more..." text is automatically hidden.
  • Reduced widget width to 600px in the admin area.

3.7

  • NEW: Added support to get posts, when on single post, from user-defined category/tag using custom field (props by Mike S).
  • NEW: Added support for changing number of posts when on single post.
  • FIX: fixed displaying comments string when using languages different from English.

3.6

  • NEW: now the user can remove the link of the featured image.

3.5

  • NEW: Added support to get posts by the author of the current post (props by Derek).
  • FIX: fixed getting posts by category slug.
  • Updated the shortcodes options.

3.4

  • Updated the shortcodes options.

3.3.1

  • FIX: fixed wrong characters displaying in custom field values (props by bubdev).
  • Minor improvements.

3.3

  • NEW: Added option to truncate the custom field content (props by bubdev).

3.2

  • NEW: Added support to get posts from the category of the current post (props by wendygordon).
  • Minor improvements.

3.1

  • NEW: Added option to display the modification date (props by ecdltf).

3.0.1

  • Fixed shortcodes execution in "Full content" type of text (thanks to fabianfabian for reporting).
  • Added check if the post is private.
  • Added check for current post in pages.
  • Added link to review page in the plugins list page.

3.0

  • NEW: Added the shortcode.
  • NEW: Added Gravatar support for authors.
  • NEW: Added "Any" to posts status.
  • NEW: Added an option to change the tooltip in the title link.
  • Reorganized the widget sections.
  • Changed some files names.
  • Changed translation domain into posts-in-sidebar.

2.0.4

  • Fixed custom container DIV (thanks to felipebadr).
  • Minor improvements.

2.0.3

  • FIX: Fixed sticky posts.
  • The complete list of widget options is now fully displayed.
  • Other minor improvements.

2.0.2

  • FIX: Fixed link on widget title.

2.0.1

  • FIX: Fixed printing local style.

2.0

  • NEW: Support for taxonomy complex queries (requires WordPress 4.1).
  • NEW: Support for date queries.
  • NEW: Support for for getting and excluding posts by multiple authors.
  • NEW: Support for queries based on search.
  • NEW: Support for getting and excluding posts that are children of other posts.
  • NEW: Support for custom taxonomies.
  • NEW: Added support for custom link in featured image (props by troy-f).
  • NEW: Changed appearance for widget sections that are collapsible now.
  • WordPress 4.1 is required (for nested taxonomy handling).
  • Added URL of the site and WordPress version in the debug section.
  • Switched to PHP5 __contruct() in creating the widget.
  • Improved security.
  • Fixed PHP notices when upgrading from previous versions.
  • Updated the Hebrew translation (thanks to Ahrale).

1.28

  • Added check for "NULL" (as string) value in certain variables.
  • FIX: Now the plugin correctly displays attachment post type.
  • FIX: Custom featured images are now displayed when the user choose no text to display.

1.27

  • NEW: Now it's possible to display the name of the taxonomy in the archive link.
  • FIX: resolved multiple PHP notices.

1.26

  • Compatibility with Relevantssi plugin (props by KTS915).
  • Updated the Hebrew translation (thanks to Ahrale).

1.25

  • NEW: Added options to use a custom image instead of the standard featured image (props by joaogsr).
  • NEW: Added class "sticky" if a post is sticky (props by acrok).
  • CHANGE: Added a checkbox to completely hide the widget if no posts are found (instead of removing the "no posts text" in order to do this).
  • Added placeholders in HTML fields.

1.24

  • FIX: resolved "No posts" issue when upgrading from 1.22 version.
  • Updated Hebrew (thanks to Ahrale) and Italian translations.

1.23

  • NEW: the widget can be hidden now if no posts are found (props by der_velli).
  • NEW: Added the option to display the full size of the featured image (props by Ilaria).
  • Moved plugin's functions files into subfolder.
  • Moved plugin's functions into separate file.
  • Added debugging tools.
  • Fixed one undefined index notice.
  • Updated the Hebrew translation (thanks to Ahrale).
  • Code improvements.

1.22

  • NEW: Added an option to display only the "Read more..." link.
  • 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.

Upgrade Notice

2.0

This version requires WordPress 4.1 (for nested taxonomy handling).

1.28

This upgrade will check if the "NULL" string exists in certain variables and convert it to an empty value. After upgrading, the user must save every widgets of this plugin.

1.27

This version resolves multiple PHP notices.

1.24

Bugfix for the issue when upgrading from 1.22 to 1.23.

1.17

This version requires WordPress 3.5 (for "post__in" option in "Order by" field).

1.10

Bugfix for password-protected posts.

1.2

Version 1.2 has changed the option to display the text of the post. When upgrading to version 1.2, check every Posts in Sidebar widget at section The text of the post to make sure that the option fits your needs.

1.0.2

No notice to display.

1.0.1

No notice to display.

1.0

No notice to display.

posts-in-sidebar's People

Contributors

aldolat avatar petersuba avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.