Title: Multiple categories in shortcodes
Last modified: August 31, 2016

---

# Multiple categories in shortcodes

 *  [wolfpass](https://wordpress.org/support/users/wolfpass/)
 * (@wolfpass)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/multiple-categories-in-shortcodes/)
 * Hello, using the random-widget I can show posts of multiple categories at the
   sidebar, now I want create as well a shortcode to show a random post in a page.
 * I used
    [arpw cat=”123″ limit=”1″ ] and it is working, but when I try to do something
   like [arpw cat=”123,132,231″ limit=”1″ ] it’s showing only the posts of the first
   cat-id 123 and not the other ones (132,231) and I would like to have randomly
   a post of all the three categories.
 * How can I do this? Many thanks for Your help!
 * [https://wordpress.org/plugins/advanced-random-posts-widget/](https://wordpress.org/plugins/advanced-random-posts-widget/)

The topic ‘Multiple categories in shortcodes’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/advanced-random-posts-widget_a7acd7.
   svg)
 * [Advanced Random Posts Widget](https://wordpress.org/plugins/advanced-random-posts-widget/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/advanced-random-posts-widget/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/advanced-random-posts-widget/)
 * [Active Topics](https://wordpress.org/support/plugin/advanced-random-posts-widget/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/advanced-random-posts-widget/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/advanced-random-posts-widget/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [wolfpass](https://wordpress.org/support/users/wolfpass/)
 * Last activity: [10 years, 1 month ago](https://wordpress.org/support/topic/multiple-categories-in-shortcodes/)
 * Status: not resolved