I have a small e-commerce site which is made by woocommerce. I want to display recent product in my home page and I could not able to do it so I have need Woocommerce recent post Meta key.
3 comments
Comments are closed.
I have a small e-commerce site which is made by woocommerce. I want to display recent product in my home page and I could not able to do it so I have need Woocommerce recent post Meta key.
Comments are closed.
There is no
meta_key
for recent products, because it’s based on date (i don’t know which one exactly, you will have to look in your DB atwp_posts
table).But you can use recent products woocommerce shortcode on your homepage:
Or you can use Feature products shortcode:
Works the same as recent products but displays products that have been set as âfeatured.â If you use feature products, you could find this in DB.
if you want to show recent products on the home page you can use WooCommerce shortcode
per_page: how many products you want to show then page
column : columns attribute controls how many columns wide the products should be before wrapping.
Lists recent products â useful on the homepage. The â
per_page
â shortcode determines how many products to show on the page and thecolumns
attribute controls how many columns wide the products should be before wrapping.