PHPackages                             bostondv/ultimate-posts-widget - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. bostondv/ultimate-posts-widget

ActiveWordpress-plugin

bostondv/ultimate-posts-widget
==============================

The ultimate widget for displaying posts, custom post types or sticky posts with an array of options.

2.0.8(8y ago)1737423[2 issues](https://github.com/bostondv/ultimate-posts-widget/issues)[3 PRs](https://github.com/bostondv/ultimate-posts-widget/pulls)MITPHPPHP &gt;=5.3.0

Since Aug 4Pushed 6y ago3 watchersCompare

[ Source](https://github.com/bostondv/ultimate-posts-widget)[ Packagist](https://packagist.org/packages/bostondv/ultimate-posts-widget)[ Docs](http://wordpress.org/plugins/ultimate-posts-widget/)[ RSS](/packages/bostondv-ultimate-posts-widget/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (9)Used By (0)

Ultimate Posts Widget
=====================

[](#ultimate-posts-widget)

The ultimate widget for displaying posts, custom post types or sticky posts with an array of options to customize the display.

Designed for both the average user and developer, Ultimate Posts Widgets aims to provide flexibility and ease of use for displaying any kinds of posts within your widget areas. An array of widget options are available as well as hooks, filters and custom templates for more advanced customization.

Options
-------

[](#options)

- Filter by categories
- Filter by current category
- Filter by tags
- Filter by current tag
- Filter by custom post types
- Filter by sticky posts
- Select number of posts to display
- Display title
- Display publish date/time with custom format options
- Display post author and link
- Display post comment count
- Display excerpt or full content
- Display read more link with custom label
- Display featured image and at any size
- Display post categories
- Display post tags
- Display custom fields
- Add text or HTML before and after posts list
- Add CSS class to widget
- Add widget title link
- Change excerpt length (in words)
- Order by date, title, number of comments, random or a custom field

More Information
----------------

[](#more-information)

- For help use [wordpress.org](http://wordpress.org/support/plugin/ultimate-posts-widget/)
- Fork or contribute on [Github](https://github.com/bostondv/ultimate-posts-widget/)
- Follow me on [Twitter](http://twitter.com/bostondv/)
- View my other [WordPress Plugins](http://profiles.wordpress.org/bostondv/)

Support
-------

[](#support)

Enjoy this plugin? [Send a tip to support development](http://bostondv.com/tips/).

Frequently Asked Questions
--------------------------

[](#frequently-asked-questions)

#### Filters

[](#filters)

**upw\_enqueue\_styles** *(boolean)*Allows changing whether to load the template CSS file(s).

**upw\_wp\_query\_args** *(array)*Allows changing the WP\_Query arguments for the widget.

**upw\_custom\_template\_path** *(string)*Allows changing the default custom template path.

#### Templates

[](#templates)

**legacy**As of version 2.0.0 we changed the widget HTML markup. For installs prior to 2.0.0 you can use the legacy template to retain the old HTML markup and compatibility.

**standard**The new standard template as of version 2.0.0. It features better HTML5 markup, improved styling on various themes without the need for custom CSS, and hfeed microformat.

**custom**As of version 2.0.0 you can now provide your own custom template files. To do this, create a directory named `upw` in your theme and copy a template from the plugin's `templates` directory. Edit as needed.

Then, in the widget settings under the *Display* tab, choose *Custom* from the *Template* drop down. In the *Custom Template Name* field that appears and enter the file name of your template (excluding .php). For example, if your template is named `custom.php` then enter `custom` in the *Custom Template Name* field.

#### Images sizes

[](#images-sizes)

*As of version 2.0.0, the plugin no longer supports setting custom image sizes from the widget options panel.*

To change image sizes you can either edit the built-in sizes (thumbnail, medium, and large) or define a custom image size in your theme `functions.php`.

**Edit built-in image sizes:** Go to *Settings &gt; Media* and change the image sizes as desired. Once image sizes are changed you will need to regenerate thumbnails to update any existing images. This can be done with [AJAX Thumbnail Rebuild](https://wordpress.org/plugins/ajax-thumbnail-rebuild/) or [Regenerate Thumbnails](https://wordpress.org/plugins/regenerate-thumbnails/) plugins. Note that this will affect image sizes for the entire site.

**Define a custom image size:** Edit your `functions.php` file and add a new image size with the `add_image_size` function. See the [WordPress codex for documentation](http://codex.wordpress.org/Function_Reference/add_image_size). Once the function is added, your custom size will be available to select from the widget options. Like editing a built-in size, you will need to regenerate thumbnails for existing images.

Example:

``

#### Thumbnail images are not displaying

[](#thumbnail-images-are-not-displaying)

*As of version 2.0.0 timthumb is no longer used.*

This plugin uses the [timthumb library](http://www.binarymoon.co.uk/projects/timthumb/) to resize post thumbnails. Please review these requirements and troubleshooting tips if you are having problems displaying thumbnails.

- Right click &gt; view image - If an image isn't loading then this is the first thing you should do. 9 times out of 10 it will tell you what the problem is in an easy to read error message.
- JetPack plugin - There is a known conflict between JetPack's "Photon" component, please disable it for compatibility with timthumb.
- Server requirements - PHP and the GD image library must be installed on your web server. Normally most web servers include them by default.
- Cache permissions - The cache directory `wp-content/plugins/ultimate-posts-widget/cache` should be set to 777 or if that doesn't work, you may find 755 is ok.
- Image sizes - timthumb is configured to only work for images smaller than 1500 x 1500. The plugin and automatically selects the "Large" size from Settings &gt; Media, if it is greater than 1500 x 1500 you will need to reduce the size or modify the configuration in `thumb.php` to support larger image sizes.
- Tilde(~) in url - timthumb has a known issue with this, please use a url without a tilde until a fix is available. [Bug report](https://code.google.com/p/timthumb/issues/detail?id=263)
- Thumbnail images only work with WordPress' native post thumbnail / featured image. Many theme use a custom image field for thumbnails, these are not supported.

**Still stuck?** See [additional troubleshooting tips](http://www.binarymoon.co.uk/2010/11/timthumb-hints-tips/) from the timthumb author.

Screenshots
-----------

[](#screenshots)

1. Example with TwentyTwelve theme with the default widget options
2. General options tab
3. Display options tab
4. Filter options tab
5. Order options tab

Changelog
---------

[](#changelog)

### 2.0.8

[](#208)

- Add filter to widget instance (thanks @X-Raym)
- Apply show posts from current tag and category to pages (thanks @veracompadriatics)

### 2.0.7

[](#207)

- Tested update WordPress 4.8

### 2.0.6

[](#206)

- Fix PHP notice (thanks @rhyswynne)
- Search custom template both in child theme and in parent (thanks @groucho75)

### 2.0.5

[](#205)

- Adds menu order sort by option

### 2.0.4

[](#204)

- Updated class constructor for WordPress 4.3 compatibility (thanks @JustB)

### 2.0.3

[](#203)

- Adds link to thumbnail images
- Adds option to show all categories, tags, or types for better usability
- Improve spacing and font sizes on some themes for the standard template
- Document adding custom image sizes
- Add option to display full size post thumbnail
- Remove post\_class() from legacy template for better backwards compatibility

### 2.0.2

[](#202)

- Reverts back to using `widget_title` filter
- Fixes number of posts setting to allow unlimited amounts
- Adds instance and widget ID variables to filters for more control

### 2.0.1

[](#201)

- Fixes issue loading multiple widgets on the same page and using the same template
- Adds a default title to the widget for new instances
- Documentation improvements

### 2.0.0

[](#200)

- Added a new standard template and custom template support
- Added basic CSS styles for better formatting
- Add hfeed microformat into new standard template
- Improved widget options interface
- Add option to filter by tags or current tag
- Remove timthumb in favor of using built-in WordPress image sizes
- Remove widget "More Button" options
- Change date display options to now accept any custom date formats
- Add before and after posts HTML fields
- Add option for widget CSS class (thanks @avenirer)
- Add option to display comment count
- Set better defaults for newly created widgets
- Various bug fixes and optimizations

*Upgrading from an earlier version?*

- Upgrades from prior to 2.0.0 we retain the "legacy" template for you. To change which template to use, find the "Template" option under the "Display" tab.
- If you used the "More Button", you will need to add in your own HTML into one of the new fields since the more button is now removed.
- If you used custom thumbnail settings you will need to update them. You can now choose from pre-defined sizes available to WordPress. If you need an additional image size please see [how to add image sizes](http://codex.wordpress.org/Function_Reference/add_image_size).
- Date formatting has changed, you will need to update your settings. By default it uses WordPress' date/time options.

### 1.9.0

[](#190)

- Adds option to order by custom field (thanks @enekochan)
- Remove "Permalink to:" from link titles (thanks @wirelessgizmo)
- Swedish translation (thanks @brstp)

### 1.8.1

[](#181)

- Add content display option

### 1.8

[](#18)

- Add custom field display
- Re-organized widget options
- Use proper alt tag for image thumbnails
- Better title attribute for links

### 1.7

[](#17)

- Added show author option
- Added class to highlight current post
- Fixed PHP error notices

### 1.6

[](#16)

- Added localization support
- Added show post categories option
- Added show post tags option
- Added custom widget title URL option
- Improved filter controls for sticky posts
- Bug fixes

\###1.5.1

- Upgrade timthumb to 2.8.11
- Load "Large" size post thumbnails which should eliminate large image errors
- Improved FAQ for thumbnail troubleshooting

### 1.5

[](#15)

- Adds crop mode option
- Add show published time option
- Now uses date / time format settings
- Bug fixes

### 1.4.5

[](#145)

- Updates screenshot

### 1.4.4

[](#144)

- Fixes show\_readmore function
- Adds more button link option

### 1.4

[](#14)

- Cleaner widget options
- Code refactoring and fixes
- Adds order by option

### 1.3

[](#13)

- Sticky posts only now optional

### 1.2

[](#12)

- Added post type filter option.
- Code cleanup.
- Better selection mechanism for categories.

### 1.1

[](#11)

- Added category filter option.

### 1.0

[](#10)

- First release.

Upgrade Notice
--------------

[](#upgrade-notice)

### 2.0.0

[](#200-1)

This is a major update and includes some breaking changes. New templates have been introduced, a few fields have changed, and thumbnails have been modified. See the changelog for details.

Installation
------------

[](#installation)

1. Download and extract the zip archive
2. Upload `ultimate-posts-widget` folder to `/wp-content/plugins/`
3. Activate the plugin through the 'Plugins' menu in WordPress
4. Add the widget to a sidebar and configure the options as desired

About
-----

[](#about)

Made with &lt;3 by [Boston Dell-Vandenberg](http://bostondv.com).

###  Health Score

34

—

LowBetter than 79% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community22

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 87.6% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~192 days

Recently: every ~202 days

Total

7

Last Release

3094d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2466478cda19cbdba3f99be5256a5c94e5697e1c4f09cf40d035618bbca1305e?d=identicon)[bostondv](/maintainers/bostondv)

---

Top Contributors

[![bostondv](https://avatars.githubusercontent.com/u/133814?v=4)](https://github.com/bostondv "bostondv (99 commits)")[![avenirer](https://avatars.githubusercontent.com/u/3034772?v=4)](https://github.com/avenirer "avenirer (2 commits)")[![sheershoff](https://avatars.githubusercontent.com/u/1510318?v=4)](https://github.com/sheershoff "sheershoff (2 commits)")[![X-Raym](https://avatars.githubusercontent.com/u/7224315?v=4)](https://github.com/X-Raym "X-Raym (2 commits)")[![groucho75](https://avatars.githubusercontent.com/u/1230256?v=4)](https://github.com/groucho75 "groucho75 (1 commits)")[![jubstuff](https://avatars.githubusercontent.com/u/101818?v=4)](https://github.com/jubstuff "jubstuff (1 commits)")[![julienleroux5](https://avatars.githubusercontent.com/u/6356888?v=4)](https://github.com/julienleroux5 "julienleroux5 (1 commits)")[![NihadAw](https://avatars.githubusercontent.com/u/8293844?v=4)](https://github.com/NihadAw "NihadAw (1 commits)")[![renatomurasaki](https://avatars.githubusercontent.com/u/1226218?v=4)](https://github.com/renatomurasaki "renatomurasaki (1 commits)")[![wirelessgizmo](https://avatars.githubusercontent.com/u/7893108?v=4)](https://github.com/wirelessgizmo "wirelessgizmo (1 commits)")[![brstp](https://avatars.githubusercontent.com/u/454633?v=4)](https://github.com/brstp "brstp (1 commits)")[![ghandrick](https://avatars.githubusercontent.com/u/55910?v=4)](https://github.com/ghandrick "ghandrick (1 commits)")

---

Tags

wordpress

### Embed Badge

![Health badge](/badges/bostondv-ultimate-posts-widget/health.svg)

```
[![Health](https://phpackages.com/badges/bostondv-ultimate-posts-widget/health.svg)](https://phpackages.com/packages/bostondv-ultimate-posts-widget)
```

###  Alternatives

[sybrew/the-seo-framework

An automated, advanced, accessible, unbranded and extremely fast SEO solution for any WordPress website.

46876.8k](/packages/sybrew-the-seo-framework)[themosis/theme

The Themosis framework boilerplate theme.

10348.9k2](/packages/themosis-theme)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
