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

---

Buscar complements

![](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

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

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

 * [Detalls](https://ca-valencia.wordpress.org/plugins/widget-posts-by-category/#description)
 * [Ressenyes](https://ca-valencia.wordpress.org/plugins/widget-posts-by-category/#reviews)
 *  [Instal·lació](https://ca-valencia.wordpress.org/plugins/widget-posts-by-category/#installation)
 * [Desenvolupament](https://ca-valencia.wordpress.org/plugins/widget-posts-by-category/#developers)

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

## Descripció

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

## Instal·lació

 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

## Ressenyes

No hi ha ressenyes per a este complement.

## Col·laboradors i desenvolupadors

«Posts By Category Widget» és programari de codi obert. La següent gent ha col·laborat
en este complement.

Col·laboradors

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

[Traduïx «Posts By Category Widget» a la teua llengua.](https://translate.wordpress.org/projects/wp-plugins/widget-posts-by-category)

### T’interessa el desenvolupament?

[Revisa el codi](https://plugins.trac.wordpress.org/browser/widget-posts-by-category/),
dona una ullada al [repositori SVN](https://plugins.svn.wordpress.org/widget-posts-by-category/)
o subscriu-te al [registre de desenvolupament](https://plugins.trac.wordpress.org/log/widget-posts-by-category/)
per [RSS](https://plugins.trac.wordpress.org/log/widget-posts-by-category/?limit=100&mode=stop_on_copy&format=rss).

## Registre de canvis

#### 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

 *  Versió **1.0.4**
 *  Última actualització **fa 13 anys**
 *  Instal·lacions actives: **80+**
 *  Versió de WordPress: ** 3.7 o posterior **
 *  Provat fins a **3.7.41**
 *  Idioma
 * [English (US)](https://wordpress.org/plugins/widget-posts-by-category/)
 * Etiquetes
 * [category](https://ca-valencia.wordpress.org/plugins/tags/category/)[posts](https://ca-valencia.wordpress.org/plugins/tags/posts/)
   [widget](https://ca-valencia.wordpress.org/plugins/tags/widget/)
 *  [Vista avançada](https://ca-valencia.wordpress.org/plugins/widget-posts-by-category/advanced/)

## Valoracions

 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/)

## Col·laboradors

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

## Suport

Tens alguna cosa a dir? Necessites ajuda?

 [Vore els fòrums de suport](https://wordpress.org/support/plugin/widget-posts-by-category/)