• Resolved Tuppa

    (@my2424u)


    Hye I am currently using this shortcode

    [products limit=”20″ columns=”4″ category=”All Custom Products”]

    I want to know will this display the same 20 products all the time or will it be random 20 products? My goal is for it to display random 20 products everytime it is selected. Can you please let me know what can I do to get it to display random products within that specific category all the time… Thanks…

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support B C. a11n

    (@battouly)

    Hi there!

    [products limit=”20″ columns=”4″ category=”All Custom Products”]

    The above shortcode will display up to 20 items in 4 columns which is one row from the ”All Custom Products” category (all the time the same items will be displayed).

    If you want to randomly order the products on page load (every time the page is refreshed or opened), you can add the following code: orderby="rand"

    The final shortcode will look like this:

    [products limit=”20″ columns=”4″ category=”All Custom Products” orderby="rand"]

    Please note – This may not work with sites that use caching, as it could save a specific order.

    Thread Starter Tuppa

    (@my2424u)

    Thanks much appreciated…

    Thread Starter Tuppa

    (@my2424u)

    I will just exclude that particular page from being cache… Really appreciate the feedback

    Plugin Support B C. a11n

    (@battouly)

    Great! You are welcome!

    I’m going to mark this as resolved now. If you have any further questions, you can start a new thread.

    Best

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Shortcode Help’ is closed to new replies.