Title: Multiple Category Shortcode
Last modified: September 7, 2016

---

# Multiple Category Shortcode

 *  [dmkjr](https://wordpress.org/support/users/dmkjr/)
 * (@dmkjr)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/multiple-category-shortcode/)
 * Is there a method to add two categories to the same shortcode?

Viewing 1 replies (of 1 total)

 *  [Delite Studio](https://wordpress.org/support/users/delitestudio/)
 * (@delitestudio)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/multiple-category-shortcode/#post-8478507)
 * Yes, in the new version you can use [staff-directory cat_field=”slug” cat_relation
   =”and” cat=”cat1,cat2,cat3″] where cat is an array of categories identified by
   id or slug (use cat_field to specify it, “id” id the default) and with a relation
   defined by cat_relation (default “or”).
    -  This reply was modified 9 years, 4 months ago by [Delite Studio](https://wordpress.org/support/users/delitestudio/).

Viewing 1 replies (of 1 total)

The topic ‘Multiple Category Shortcode’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/staff-directory_a19d9e.svg)
 * [Staff Directory](https://wordpress.org/plugins/staff-directory/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/staff-directory/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/staff-directory/)
 * [Active Topics](https://wordpress.org/support/plugin/staff-directory/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/staff-directory/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/staff-directory/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Delite Studio](https://wordpress.org/support/users/delitestudio/)
 * Last activity: [9 years, 4 months ago](https://wordpress.org/support/topic/multiple-category-shortcode/#post-8478507)
 * Status: not resolved