Archived topic
wp show posts and generateblocks
9 replies · Started by nana on May 24, 2020
I am using both plugins. I have an issue with what I would like to show on my homepage from my products page. I only want to get the product images, the first 10 words of the description and the price to show. How can I do that?
Hi there,
Is there a reason why you are using WPSP to display products?
This is not a common practice as you can use WooCommerce shortcode to display products:
https://docs.woocommerce.com/document/woocommerce-shortcodes/
I tried using codes but it is not working, I don't know if I am the one placing the code on the wrong place
Hi there,
lets start with adding this shortcode:
[products limit="4" columns="4"]
This will display the latest 4 products across a single row.
Let us know if that works.
What if I want to show a certain category of products?
Did you check out the doc page here?
https://docs.woocommerce.com/document/woocommerce-shortcodes/#display-product-attributes
The category part should be what you are looking for.
Please check with WooCommerce support first if you have more questions.
All the shortcodes I got from woocommerce's shortcodes page are not working. I just want one that will help me display a certain category of my products
Hi there,
to display a list of products from a specific category your shortcode would look something like this:
[products limit="4" columns="4" category="your-category-slug" ]
Change your-category-slug to whatever category you want displayed.
Thank you David, it works perfectly.
Glad to hear that