Title: Category Sorting
Last modified: August 20, 2016

---

# Category Sorting

 *  Resolved [samplona](https://wordpress.org/support/users/samplona/)
 * (@samplona)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/category-sorting-2/)
 * hi,
 * i try to make a list of events of one category on a page.
    i try different code,
   but al i get is a list of al event’s. i also discovered the number of the category’s
   but dit also not worked. {events_printlist; categories=”43″} this is the code
   i used, wath goes wrong?
 * [http://wordpress.org/extend/plugins/wp-calendar/](http://wordpress.org/extend/plugins/wp-calendar/)

Viewing 7 replies - 1 through 7 (of 7 total)

 *  [dsg257](https://wordpress.org/support/users/dsg257/)
 * (@dsg257)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/category-sorting-2/#post-3304144)
 * try
    {events_list categories=”43″} make sure the category is the same as you 
   have in the posts catergories
 *  Thread Starter [samplona](https://wordpress.org/support/users/samplona/)
 * (@samplona)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/category-sorting-2/#post-3304148)
 * hi,
 * i try this code, but did not work, i see no events with this code.
    the number
   of the category is good and the same as the events. did i checked in the database.
 *  Plugin Author [faebu](https://wordpress.org/support/users/faebu/)
 * (@faebu)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/category-sorting-2/#post-3304181)
 * i made several tests and filtering allways worked. make sure you use the correct
   category id, because there is confusing mix between category and term id (category
   is a term).
 * To get the correct category id, goto Post -> Categories
 * Look at the url, which the category is linked to. You’ll find the category id
   in the url (tag_ID).
 * [http://localhost/wordpress/wp-admin/edit-tags.php?action=edit&taxonomy=category&tag_ID=8&post_type=post](http://localhost/wordpress/wp-admin/edit-tags.php?action=edit&taxonomy=category&tag_ID=8&post_type=post)
 *  Thread Starter [samplona](https://wordpress.org/support/users/samplona/)
 * (@samplona)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/category-sorting-2/#post-3304186)
 * hi,
 * i checked the category id several time, first at the event page en at the category
   page, both are 43.
 * admin.php?page=wp-alendar/fsCalendar.php&event_category=43
    edit-tags.php?action
   =edit&taxonomy=category&tag_ID=43&post_type=post
 * when i try to filter, i see no event.
    {events_printlist categories=”43″} {events_printlist
   event_category=”43″}
 * when i use this one i see al the events.
    {events_printlist}
 *  Plugin Author [faebu](https://wordpress.org/support/users/faebu/)
 * (@faebu)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/category-sorting-2/#post-3304188)
 * did you separate the filter by a semicolon?
 * the correct line would be
 * {events_printlist**;** categories=”43″}
 *  Thread Starter [samplona](https://wordpress.org/support/users/samplona/)
 * (@samplona)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/category-sorting-2/#post-3304192)
 * no, i did not,
 * with the correct line is it working.
 * thanks for the support.
 *  Thread Starter [samplona](https://wordpress.org/support/users/samplona/)
 * (@samplona)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/category-sorting-2/#post-3304193)
 * no, i did not,
 * with the correct line is it working.
 * thanks for the support.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Category Sorting’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-calendar.svg)
 * [WP Calendar](https://wordpress.org/plugins/wp-calendar/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-calendar/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-calendar/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-calendar/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-calendar/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-calendar/reviews/)

 * 7 replies
 * 3 participants
 * Last reply from: [samplona](https://wordpress.org/support/users/samplona/)
 * Last activity: [13 years, 4 months ago](https://wordpress.org/support/topic/category-sorting-2/#post-3304193)
 * Status: resolved