Archived topic
How to insert my products list or grid into the single blog post?
7 replies · Started by Paul on February 16, 2022
hello david,
As u know that I HAVE Premium GP and generateblocks Pro.
How to insert my products list or grid into the single blog post?
Element? or generateblocks Pro?
pls give me some advice or recommendation thanks
Hi Paul,
A functionality like this is set to be released anytime soon this year with the merging of GenerateBlocks Pro and WP Show Posts.
For the mean time, you can you plugin WP Show Posts, and create a list and set the post type to product. Then you can hook the shortcode of this list with a Hook Element.
See this for reference: https://share.getcloudapp.com/P8u6qzN0
Also see: https://docs.generatepress.com/article/hooks-element-overview/
Moreover, if you’re already using WordPress 5.9, you can also use a Query Loop Block to do as such.
See this for reference: https://share.getcloudapp.com/P8u6qz8G
Also see: https://share.getcloudapp.com/9ZuDpODy
Hope this helps! :)
HI, how are you
thanks for your help
do you have the links of video guide about WP Show Posts and Query Loop Block from GP offical or other blogger?
thanks
Hi there,
if you're using Woocommerce then i would use the woo shortcodes:
https://woocommerce.com/document/woocommerce-shortcodes/
It may not be block based in the editor but in my opinion its the best method there is today, as the shortcodes respect the Woocommerce templates so they match the styles you see elsewhere on your site.
Theres no current previews of GB Query Loop Block, and its most likely that Woo products won't be supported in the initial release.
hello david,
yes im using woocommerce for my website.
yes, i agree with you that woo shortcodes are perfect to solve this one.
I will check this file of https://woocommerce.com/document/woocommerce-shortcodes/
one more thing, do you have recommended video guides for woo shortcodes? if having, pls show me, thanks
have a nice day.
apul
Not aware of any current video tutes on Shortcodes unfortunately.
Glad to be of help
thanks for all, david
have a nice day
You're welcome