Title: Shortcode: Display only certain categories
Last modified: October 26, 2020

---

# Shortcode: Display only certain categories

 *  Resolved [LisaK.social](https://wordpress.org/support/users/lisaksocial/)
 * (@lisaksocial)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/shortcode-display-only-certain-categories/)
 * Hello,
    Trying to use shortcode to create a page that only shows one specific
   category.
 * [betterdocs_category_grid terms=”term_ID=20″]
 * However, the other categories are still showing on this page??
 * How can I show only select categories on a page?
 * (using 2020 theme, no other plugins activated)
 * Thanks in advance for your help!
    -Lisa K.

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

 *  Plugin Support [Mahbub Shovan](https://wordpress.org/support/users/mahbubshovan/)
 * (@mahbubshovan)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/shortcode-display-only-certain-categories/#post-13586169)
 * Hi [@lisaksocial](https://wordpress.org/support/users/lisaksocial/),
    Hope you
   are doing well.
 * Well, You can use the following shortcode to display certain categories:
 * Please use as mentioned here for multiple category: _**[betterdocs\_category\
   _grid terms=“1, 2, 3”]**_
 * Use these code for single category: **[betterdocs_category_grid terms=1]**
 * 1,2,3 would be the category IDs in this case. To find your category ID, simply
   go to BetterDocs -> Categories. Hover your mouse over one of the categories. 
   You will find the URL below. On the browser, the link looks for the tag_ID=X.
   That’s your category ID. Simply then use this ID as I have mentioned before in
   the shortcode. Here’s the screenshot: [https://d.pr/i/qR1fXs](https://d.pr/i/qR1fXs)
 * Let me know how it goes. Thank you.
    -  This reply was modified 5 years, 7 months ago by [Mahbub Shovan](https://wordpress.org/support/users/mahbubshovan/).
 *  Thread Starter [LisaK.social](https://wordpress.org/support/users/lisaksocial/)
 * (@lisaksocial)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/shortcode-display-only-certain-categories/#post-13586895)
 * Got it, thank you!

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

The topic ‘Shortcode: Display only certain categories’ is closed to new replies.

 * ![](https://ps.w.org/betterdocs/assets/icon-256x256.png?rev=2953105)
 * [BetterDocs – Knowledge Base Docs & FAQ Solution for Elementor & Block Editor](https://wordpress.org/plugins/betterdocs/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/betterdocs/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/betterdocs/)
 * [Active Topics](https://wordpress.org/support/plugin/betterdocs/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/betterdocs/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/betterdocs/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [LisaK.social](https://wordpress.org/support/users/lisaksocial/)
 * Last activity: [5 years, 7 months ago](https://wordpress.org/support/topic/shortcode-display-only-certain-categories/#post-13586895)
 * Status: resolved