Title: Posts By Category Widget
Author: volfro
Published: <strong>December 10, 2013</strong>
Last modified: December 17, 2013

---

Search plugins

![](https://ps.w.org/widget-posts-by-category/assets/banner-772x250.png?rev=818185)

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://s.w.org/plugins/geopattern-icon/widget-posts-by-category_eec096.svg)

# Posts By Category Widget

 By [volfro](https://profiles.wordpress.org/volfro/)

[Download](https://downloads.wordpress.org/plugin/widget-posts-by-category.1.0.4.zip)

 * [Details](https://mlt.wordpress.org/plugins/widget-posts-by-category/#description)
 * [Reviews](https://mlt.wordpress.org/plugins/widget-posts-by-category/#reviews)
 *  [Installation](https://mlt.wordpress.org/plugins/widget-posts-by-category/#installation)
 * [Development](https://mlt.wordpress.org/plugins/widget-posts-by-category/#developers)

 [Support](https://wordpress.org/support/plugin/widget-posts-by-category/)

## Description

This widget displays posts in the category, order, and quantity of your choosing.
It supports custom templates!

After installation, drag-and-drop the new “Category Widget” to a widget area, choose
the categories you wish to display, and tell it the order and quantity in which 
you wish to display them.

### Templates

The default template is just plain-ol’ HTML5, without any CSS; it’s meant to fit
right into any theme without modification.

However, if you’re a theme developer and you wish to use custom markup or WP functions
inside your template, here’s how to customize it:

 1. In the root of your theme’s directory, create a new file called `catswidget.php`(
    or copy `template.php` from `posts-by-cat-widget/views` to your theme’s root, and
    rename it `catswidget.php`, if you’d rather use the default as a starting point).
 2. Craft your loop. Just make sure you use the `$posts` variable, like this:`if ( 
    $posts -> have_posts() ) :
     while ( $posts -> have_posts() ) : $posts -> the_post();?
    > // Your markup here endwhile; endif;
 3. The widget is just a simple custom loop, so you’ll have access to whatever data
    WP_Query has access to inside the loop.

### TODO

 * Perhaps we could use it to query custom post types/taxonomies, not just Posts
 * Add hooks/filters
 * Add ability to extend admin

## Installation

 1. Upload `posts-by-cat-widget` to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Use the “Category Widget” in any of your sidebars/widget areas

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Posts By Category Widget” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ volfro ](https://profiles.wordpress.org/volfro/)

[Translate “Posts By Category Widget” into your language.](https://translate.wordpress.org/projects/wp-plugins/widget-posts-by-category)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/widget-posts-by-category/),
check out the [SVN repository](https://plugins.svn.wordpress.org/widget-posts-by-category/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/widget-posts-by-category/)
by [RSS](https://plugins.trac.wordpress.org/log/widget-posts-by-category/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.0.4

 * Update to 3.8

#### 1.0.2

 * Plugin wasn’t installing properly in the WP dashboard…maybe updating its headers
   will fix the issue.

#### 1.0.1

 * Minor updates to readme

#### 1.0

 * Release

## Meta

 *  Version **1.0.4**
 *  Last updated **12 years ago**
 *  Active installations **80+**
 *  WordPress version ** 3.7 or higher **
 *  Tested up to **3.7.41**
 *  Language
 * [English (US)](https://wordpress.org/plugins/widget-posts-by-category/)
 * Tags
 * [category](https://mlt.wordpress.org/plugins/tags/category/)[posts](https://mlt.wordpress.org/plugins/tags/posts/)
   [widget](https://mlt.wordpress.org/plugins/tags/widget/)
 *  [Advanced View](https://mlt.wordpress.org/plugins/widget-posts-by-category/advanced/)

## Ratings

 5 out of 5 stars.

 *  [  2 5-star reviews     ](https://wordpress.org/support/plugin/widget-posts-by-category/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/widget-posts-by-category/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/widget-posts-by-category/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/widget-posts-by-category/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/widget-posts-by-category/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/widget-posts-by-category/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/widget-posts-by-category/reviews/)

## Contributors

 *   [ volfro ](https://profiles.wordpress.org/volfro/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/widget-posts-by-category/)