• Resolved LisaK.social

    (@lisaksocial)


    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

    (@mahbubshovan)

    Hi @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

    Let me know how it goes. Thank you.

    Thread Starter LisaK.social

    (@lisaksocial)

    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.