Title: Create short code for a single category
Last modified: June 5, 2019

---

# Create short code for a single category

 *  Resolved [muriloms](https://wordpress.org/support/users/muriloms/)
 * (@muriloms)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/create-short-code-for-a-single-category/)
 * I need to create a short code to limit a category to appear only three items,
   I’m currently using it like this: [directorist_all_listing category = ‘Buy launch’
   columns = 3] and I need only add this limitation to appear only three

Viewing 1 replies (of 1 total)

 *  [aazztech](https://wordpress.org/support/users/aazztech/)
 * (@aazztech)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/create-short-code-for-a-single-category/#post-11637363)
 * Hi,
    Please try this: [directorist_all_listing category=”category-slug” listings_per_page
   =”3″]
 * Documentation: [http://directorist.com/docs/shortcodes/shortcodes/all-listings/](http://directorist.com/docs/shortcodes/shortcodes/all-listings/)

Viewing 1 replies (of 1 total)

The topic ‘Create short code for a single category’ is closed to new replies.

 * ![](https://ps.w.org/directorist/assets/icon-256x256.gif?rev=3185058)
 * [Directorist: AI-Powered Business Directory, Listings & Classified Ads](https://wordpress.org/plugins/directorist/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/directorist/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/directorist/)
 * [Active Topics](https://wordpress.org/support/plugin/directorist/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/directorist/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/directorist/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [aazztech](https://wordpress.org/support/users/aazztech/)
 * Last activity: [6 years, 11 months ago](https://wordpress.org/support/topic/create-short-code-for-a-single-category/#post-11637363)
 * Status: resolved