Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › list categories alphbetically
Tagged: category list, short code, simple list
- This topic has 6 replies, 5 voices, and was last updated 10 years, 8 months ago by admin.
-
AuthorPosts
-
February 24, 2012 at 4:14 am #5640JaneMember
Is there a way to get a simple alphabetical list of the categories? I’ve got a simple text widget using [wp_eStore_list_categories]. I’ve tried adding the order command you use in other shortcodes, but that doesn’t seem to do anything. (okay…it’s probably stupid, but I tried!: Can’t find anything in the shortcode or extra shortcode that seems to handle the order of the category list, just the order of the products in a list.
thanks
February 25, 2012 at 1:04 am #42279adminKeymasterModified that shortcode so it can take another argument to specify the sort order of the category list that is displays. You will need to get an updated build of the extra eStore shortcodes plugin.
You can then use the following shortcode which allows you to short the category list:
[wp_eStore_list_categories count=false order=1]
You can modify “order=1” parameter to customize the category display order. You can use one of the following values for the “order” parameter:
1: Sort by Category ID in ascending order
2: Sort by Category ID in descending order
3: Sort by Category name (a-z)
4: Sort by Category name (z-a)
So the following shortcode will display a list of categories sorted by category name:
[wp_eStore_list_categories count=false order=3]
February 25, 2012 at 7:15 am #42280JaneMemberWheeeee Thanks so much!
January 9, 2014 at 12:58 pm #42281Joe CarellaMemberI tried thus short code, and all I got was the short code displayed.
Additionally, is there a way to list only the description of the category? I get the category name printed twice using:
[wp_eStore_list_categories_fancy]
I love the product, but with as many products as we have, category lists will be great.
January 9, 2014 at 3:26 pm #42282wzpModeratorThe [wp_eStore_list_categories] shortcode requires the Extra eStore Shortcodes addon.
https://support.tipsandtricks-hq.com/forums/download-addons.php
Here are some threads that may give you some ideas on how to manage product categorization:
https://support.tipsandtricks-hq.com/forums/topic/categories-in-sidebar-grid-display
March 26, 2014 at 2:14 pm #42283BeckyMemberI am using [wp_eStore_category_products_fancy id=14 style=10, order=3] where the 14 is the caps and hats category on the page [http://creativeheadwear.com/caps/]. This should list all of the fleece caps and hats products I have, so that is a large list. I notice that the entries are not displayed in the order of the description. There must be a limit set somewhere in the code that I could increase.
This works perfectly when the number of products is smaller as in [http://creativeheadwear.com/caps-newborn/]
Could you please let me know where I may increase that quantity limit?
My version information:
Extra Shortcodes for WP eStore Version v4.6.6
WP eStore Version v7.0.7
WordPress 3.8.1
March 27, 2014 at 3:44 am #42284adminKeymasterWhen you have a lot of products, it will add pagination at the bottom of the list. Your visitors can click on the page number to go to the next page.
Go to the settings menu and adjust the pagination number using the following field:
Products Per Page Limit
-
AuthorPosts
- You must be logged in to reply to this topic.