Title: List categories
Author: Fernando Briano
Published: <strong>26 de juny de 2014</strong>
Last modified: 15 de maig de 2025

---

Cerca extensions

![](https://ps.w.org/list-categories/assets/banner-772x250.png?rev=2517918)

![](https://ps.w.org/list-categories/assets/icon-256x256.png?rev=2517918)

# List categories

 Per [Fernando Briano](https://profiles.wordpress.org/fernandobt/)

[Baixa](https://downloads.wordpress.org/plugin/list-categories.0.5.zip)

 * [Detalls](https://ca.wordpress.org/plugins/list-categories/#description)
 * [Ressenyes](https://ca.wordpress.org/plugins/list-categories/#reviews)
 *  [Instal·lació](https://ca.wordpress.org/plugins/list-categories/#installation)
 * [Desenvolupament](https://ca.wordpress.org/plugins/list-categories/#developers)

 [Suport](https://wordpress.org/support/plugin/list-categories/)

## Descripció

Simple plugin to display categories in any post or page with a shortcode. It’s basically
a shortcode API interface to the [wp_list_categories](https://developer.wordpress.org/reference/functions/wp_list_categories/)
WordPress function. This means given any of the [parameters](https://developer.wordpress.org/reference/functions/wp_list_categories/#parameters)
accepted by the function, you can pass it in as a shortcode parameter to the `categories`
shortcode.

Usage:

    ```
    [categories orderby=count]
    ```

Will display links to all the categories and order them by number of posts in each
category.

You can also **list tags** or any other WordPress taxonomy. You need to pass a value
to the `taxonomy` parameter. For example to list tags: `[categories taxonomy=post_tag
title_li="Tags"]`.
 By default, the usage shows:

 * No link to all categories
 * Sorts the list of Categories by the Category name in ascending order
 * Displayed in an unordered list style
 * Does not show the post count
 * Displays only Categories with posts
 * Sets the title attribute to the Category Description
 * Is not restricted to the child_of any Category
 * No feed or feed image used
 * Does not exclude any Category and includes all Categories
 * Displays the active Category with the CSS Class-Suffix ‘ current-cat’
 * Shows the Categories in hierarchical indented fashion
 * Display Category as the heading over the list
 * No SQL LIMIT is imposed (‘number’ => 0 is not shown above)
 * Displays (echos) the categories
 * No limit to depth
 * All categories.
 * The list is rendered using a new walker object of the the Walker_Category class

See [wp_list_categories](https://developer.wordpress.org/reference/functions/wp_list_categories/)
for usage.

### Markup and Styling of Category Lists

Taken from the [wp_list_categories official documentation](https://codex.wordpress.org/Template_Tags/wp_list_categories#Markup_and_Styling_of_Category_Lists).

By default, wp_list_categories() generates nested unordered lists (ul) within a 
single list item (li) titled “Categories”.

You can remove the outermost item and list by setting the title_li parameter to 
an empty string. You’ll need to wrap the output in an ordered list (ol) or unordered
list yourself (see the examples above). If you don’t want list output at all, set
the style parameter to none.

You can style the output with these CSS selectors :

    ```
    li.categories { ... }  /* outermost list item */
    li.cat-item { ... }
    li.cat-item-7 { ... }  /* category ID #7, etc */
    li.current-cat { ... }
    li.current-cat-parent { ... }
    ul.children { ... }
    ```

For instance, you can remove the bullet points next to each category with:

    ```
    .cat-item {
      list-style-type: none
    }
    ```

### Show categories list in columns

For outputting the list into columns, you can use [CSS’s multicolumns](https://www.w3.org/TR/css-multicol-1/).
Since by default the list is printed as an unordered list with the “categories” 
class, you can add this to your CSS:

    ```
    .categories{
        column-count: 5;
        column-gap: 50px;
    }
    ```

## Instal·lació

 * Upload the plugin’s directory into your wp-content/plugins/ directory.
 * Login to your WordPress Admin menu, go to Plugins, and activate it.

## Ressenyes

![](https://secure.gravatar.com/avatar/482136856e04a4a542b2abf1dd58b9940866ef85b9b068a3bd246ebcb9f3fcf7?
s=60&d=retro&r=g)

### 󠀁[Simple, but effective](https://wordpress.org/support/topic/simple-but-effective-192/)󠁿

 [amedeebulle](https://profiles.wordpress.org/amedeebulle/) 24 de juliol de 2023

I was looking for a way to list subcategories of a single main category.This plugin
does the trick (and more)

![](https://secure.gravatar.com/avatar/a08c238554a6afbd5044e701cd90d6de4750750abf1a42f111dd2d2e1e101c9b?
s=60&d=retro&r=g)

### 󠀁[Easy and useful](https://wordpress.org/support/topic/easy-ans-useful/)󠁿

 [robegb](https://profiles.wordpress.org/robegb/) 25 de maig de 2023

Well documented. Thank you!

![](https://secure.gravatar.com/avatar/f765533d2960b16b63a25d81ac174ff0715ca9909f776bc06f02568464113194?
s=60&d=retro&r=g)

### 󠀁[Just what I needed](https://wordpress.org/support/topic/just-what-i-needed-1221/)󠁿

 [Chris Roberts](https://profiles.wordpress.org/artcop1/) 6 de octubre de 2022

Thank you for the great plugin! It works perfectly with WP v6.0.2 and my Hello Theme
and has saved me hours of work 🙂 Cheers!

![](https://secure.gravatar.com/avatar/a595552ff5cd7857473a8647d632907843460520a876a57ae10a1e69512e4576?
s=60&d=retro&r=g)

### 󠀁[Thank you!!](https://wordpress.org/support/topic/thank-you-3207/)󠁿

 [bigcheesez](https://profiles.wordpress.org/bigcheesez/) 2 de octubre de 2022

i hope these great works bless you with future work and good fortune. thank you 
kindly. oh and i tested this and works fine!

![](https://secure.gravatar.com/avatar/afdd4b8d340742bec36a31c07e86a2e938554e3394ab0681ba227a1809c2dc0b?
s=60&d=retro&r=g)

### 󠀁[not to use](https://wordpress.org/support/topic/not-to-use/)󠁿

 [orangesunshine](https://profiles.wordpress.org/orangesunshine/) 30 de març de 
2018

could not find out out how to use it.

![](https://secure.gravatar.com/avatar/3cc94764dae0b65e80eabf23c7b299f3da208a8c6da848b92a18936da09d86e1?
s=60&d=retro&r=g)

### 󠀁[Works as promised](https://wordpress.org/support/topic/works-as-promised-67/)󠁿

 [Mel – Jett Web Development](https://profiles.wordpress.org/melr/) 16 de novembre
de 2016

Thank you, perfect solution in minutes!

 [ Llegiu totes les 15 ressenyes ](https://wordpress.org/support/plugin/list-categories/reviews/)

## Col·laboradors i desenvolupadors

«List categories» és programari de codi obert. La següent gent ha col·laborat en
aquesta extensió.

Col·laboradors

 *   [ Fernando Briano ](https://profiles.wordpress.org/fernandobt/)

[Traduïu «List categories» a la vostra llengua.](https://translate.wordpress.org/projects/wp-plugins/list-categories)

### Interessats en el desenvolupament?

[Navegueu pel codi](https://plugins.trac.wordpress.org/browser/list-categories/),
baixeu-vos el [repositori SVN](https://plugins.svn.wordpress.org/list-categories/),
o subscriviu-vos al [registre de desenvolupament](https://plugins.trac.wordpress.org/log/list-categories/)
per [fisl de subscripció RSS](https://plugins.trac.wordpress.org/log/list-categories/?limit=100&mode=stop_on_copy&format=rss).

## Registre de canvis

#### 0.4

 * Tested up to the latest version of WordPress.

#### 0.3

 * Tested up to the latest version of WordPress
 * Adds note about taxonomies, updates parameters

#### 0.2

 * Fixes plugin content with wrong placement. Thanks windwww from the WP Forums.

#### 0.1

 * First version based on [this GitHub issue](https://github.com/picandocodigo/List-Category-Posts/issues/106)

## Meta

 *  Versió **0.5**
 *  Darrera actualització **fa 11 mesos**
 *  Instal·lacions actives **6.000+**
 *  Versió del WordPress ** 3.3 o posterior **
 *  Provada fins a **6.8.5**
 *  Idioma
 * [English (US)](https://wordpress.org/plugins/list-categories/)
 * Etiquetes
 * [categories](https://ca.wordpress.org/plugins/tags/categories/)[cms](https://ca.wordpress.org/plugins/tags/cms/)
   [list](https://ca.wordpress.org/plugins/tags/list/)
 *  [Vista avançada](https://ca.wordpress.org/plugins/list-categories/advanced/)

## Valoracions

 4.5 sobre 5 estrelles.

 *  [  11 valoracions de 5 estrelles     ](https://wordpress.org/support/plugin/list-categories/reviews/?filter=5)
 *  [  3 valoracions de 4 estrelles     ](https://wordpress.org/support/plugin/list-categories/reviews/?filter=4)
 *  [  0 valoracions de 3 estrelles     ](https://wordpress.org/support/plugin/list-categories/reviews/?filter=3)
 *  [  0 valoracions de 2 estrelles     ](https://wordpress.org/support/plugin/list-categories/reviews/?filter=2)
 *  [  1 valoració de 1 estrelles     ](https://wordpress.org/support/plugin/list-categories/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/list-categories/reviews/#new-post)

[Visualitzeu totes les ressenyes](https://wordpress.org/support/plugin/list-categories/reviews/)

## Col·laboradors

 *   [ Fernando Briano ](https://profiles.wordpress.org/fernandobt/)

## Suport

Teniu quelcom a dir? Necessiteu ajuda?

 [Visualitza els fòrums de suport](https://wordpress.org/support/plugin/list-categories/)

## Feu una donació

Voleu ajudar a què l’extensió millori?

 [ Feu una donació a aquesta extensió ](http://picandocodigo.net/programacion/wordpress/list-category-posts-wordpress-plugin-english/#support)