Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration

Request: Shortcode and PHP reference function

by

Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › Request: Shortcode and PHP reference function

Tagged: footer, PHP, products, shortcode

  • This topic has 6 replies, 2 voices, and was last updated 14 years, 1 month ago by deane.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • March 17, 2011 at 5:38 am #2969
    deane
    Member

    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.

    March 17, 2011 at 11:05 pm #30305
    amin007
    Participant

    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.

    March 18, 2011 at 4:11 pm #30306
    deane
    Member

    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:)

    March 19, 2011 at 1:40 am #30307
    amin007
    Participant

    I will look into adding a parameter to limit the number of products that gets displayed.

    March 19, 2011 at 3:24 am #30308
    deane
    Member

    That is so wonderful of you, Amin…thank you so much. I keep watching on it…have a nice day!

    March 20, 2011 at 3:27 am #30309
    amin007
    Participant

    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

    March 21, 2011 at 2:54 am #30310
    deane
    Member

    Yehey! Thank you so much Amin, you’re the best! I will work on it now!….thank you thank you…

  • Author
    Posts
Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.
Log In

Forum Related

  • Forum Home
  • Forum Search
  • Forum Registration
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Shopping Cart Plugin
  • Simple Download Monitor

Copyright © 2025 | Tips and Tricks HQ