- This topic has 2 replies, 2 voices, and was last updated 12 years, 5 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 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 › WP eStore Tweaks › eStore/eMember: Show some products while hiding others (shortcodes)
Ideally, on my shop front page, I’d like to show an eclectic mix of the novels and writing courses I offer; however, I do NOT want to include site memberships, which I want to keep off the front page.
Is there a way (preferably by using short codes) that I can pull random products from several of my categories, while blocking off the category of memberships?
Something that might go together like [wp_eStore_category_products_fancy id=1-2-3 idnot=4 random=yes style=1 type=1]
Or even adding newest=yes or mosttoleastpopular=yes
I’m not hoping for these as codes. But I’m hoping that naming them what I need them to do to get my shop to present my books and courses the way I want gives you a clearer picture of what I hope to accomplish.
Thank you for any help you can offer.
Cheerfully,
Holly
You can use the following shortcode to get a number of random products from a particular category:
[wp_eStore_random_products number=3 style=1 type=1 cat_id=1]
The above shortcode will display 3 random products from category “1” with fancy1 style and an “Add to Cart” type button.
Given you have categorized all of your products, you can use a few of the above shortcode to achieve what you are after.
The following post is also a good read for display product(s) from a particular category:
Thank you. This is perfect!