- This topic has 6 replies, 2 voices, and was last updated 13 years, 7 months ago by .
Viewing 7 posts - 1 through 7 (of 7 total)
Viewing 7 posts - 1 through 7 (of 7 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 › Request: Shortcode and PHP reference function
Hope this is not too much….can I ask for the shortcode and PHP for LATEST PRODUCTS FROM A PARTICULAR CATEGORY WITH FANCY STYLE options wherein I can modify the number of recently added items to show from such category and not all items included.
Thanks for the help.
Check the extra eStore shortcode list for the full details on this but essentially you will be able to use the following:
<?php echo show_wp_eStore_category_products_fancy(1,3,1); ?>
You can sort the order by product ID. When you specify to sort it in descending order it will show the latest products first (your recently added products will always have the highest product ID).
This function doesn’t take a parameter that limits how many products to show but that can be added.
Thank you Amin for pointing out the code. That code is really what I need, but is it possible for that shortcode to have additional parameter to limit the number of latest items from that category to show?
I want to have that shortcode (PHP) to show in my homepage so that all items would not display….
Thank you again:)
I will look into adding a parameter to limit the number of products that gets displayed.
That is so wonderful of you, Amin…thank you so much. I keep watching on it…have a nice day!
Added this option in. Now you can either use the following shortcode (the “number=5” can be customized to show a limited number of products from a particular category):
[wp_eStore_category_products_fancy id=1 style=3 order=1 type=1 number=5]
The corresponding PHP function for the above shortcode is:
<?php echo show_wp_eStore_category_products_fancy(1,1,1,1,5); ?>
The 5th parameter is for the number of products to show.
You will need to download a new build of the extra eStore shortcode plugin from here:
http://www.tipsandtricks-hq.com/ecommerce/wp-estore-shortcodes-and-functions-reference-460
Yehey! Thank you so much Amin, you’re the best! I will work on it now!….thank you thank you…