You’ll need to construct a suitable shortcode:
https://docs.woocommerce.com/document/woocommerce-shortcodes/
Something like:
[products limit="12" orderby="date" order="desc"]
“date” refers to the date the product was published.
“desc” means starting with the latest.
Thread Starter
slimmz
(@slimmz)
Thanks for reaching out @lorro
I will try to implement this
Thread Starter
slimmz
(@slimmz)
Hey @lorro I did the exact code you gave me, but it’s not working, am i missing something?
I tried it before posting and it worked for me.
Did you put it in a page or in a widget? In a widget may not work.
Did you make sure to use straight quotes "
and not smart (angled/curly) quotes?
Did you try just [products]
, does that work OK?
Thread Starter
slimmz
(@slimmz)
Yes i used it correctly im pretty sure, and it’s not on a widget
Im using WP Bakery page builder, and using Text Block in it
Also tried using the Guttenberg, still the same
the result is just text: https://ibb.co/bK3Sq9q
EDIT: I tried to use another shortcode like [woocommerce_cart] and it worked, but all of the product-related shortcode is not. Why?
ANOTHER EDIT: I found out that WP Page Bakery came with its product block I could use to display recent product haha, how silly I’am
Thanks or the support mate
-
This reply was modified 1 year, 7 months ago by
slimmz.
-
This reply was modified 1 year, 7 months ago by
slimmz.
-
This reply was modified 1 year, 7 months ago by
slimmz.