- This topic has 5 replies, 2 voices, and was last updated 8 years, 7 months ago by .
Viewing 6 posts - 1 through 6 (of 6 total)
Viewing 6 posts - 1 through 6 (of 6 total)
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › eStore: List only specific category instead of all categoies
Tagged: eStore category
Hi, I am new to WP-eStore-plugin. What I want is to list some categories instead of all categories for localization purpose? Shortcode like this:[wp_eStore_list_categories category_id=1]. Is this possible? Thank you very much.
What do you mean by some categories? Like 4 or 5 of them? You can just manually type them up in a list. So edit your post or page where you want to list them, then type there name up (optionally you can link the name to a page if you have pages for them).
Thank you for your reply. This is a solution. But what if I need to display like 20 of them? It’s not convenient to type them all and link them to pages.
I understand. Thats kind of why we have that list all category shortcode. However, I am not understanding how we can list a small subset of that category using that shortcode.
Could you please tell me where the shortcodes are defined? So I can look into the code and maybe implement the feature myself? Thank you.
That shortcode comes from the extra estore shortcodes addon. So open the “eStore-extra-shortcodes.php” file and look for the following function (then you can follow it from there):
wp_eStore_list_categories_handler()