Archived topic
Creating gallery using GenerateBlocks
5 replies · Started by Gabrielle on April 17, 2022
Hi, I'm currently rebuilding a site using GP Pro and Elementor Pro. The site previously had the Everything theme installed and had a nice little image carousel on multiple pages. I decided to go with a simple Wordpress gallery instead (using the Wordpress gallery widget within the Elementor container) but I'm having difficulty linking the image to the product page, even with the Gallery Custom Links installed (tested on Wordpress and Gutenberg but not Elementor).
Will GenerateBlocks Pro solve this issue, if I create a gallery block and add it as a hook element to the specified pages?
Thanks in advance,
Gabrielle
Hi Gabrielle,
WooCommerce has its own set of Blocks you may use to show products: https://share.getcloudapp.com/9Zumy8LP
For instance, using an All Products - WooCommerce Block results in something like: https://share.getcloudapp.com/jkuvRe60
GenerateBlocks is also set to merge with GenerateBlocks which is capable of querying Products as well.
Hope this clarifies. If you're referring to something else, kindly let us know. :)
Thanks, Fernando. What I'm trying to do is show the books in a series on individual book pages, then allow visitors to click on individual covers and go to that book's page.
This is an example from the site that I'm recreating, with the gallery at the bottom:
https://nalinisingh.com/books/psychangeling-trinity-series/silver-silence/
What I'm trying to do is show all covers on the page in a gallery--no scrolling/carousel and no text. I'm happy to add Woocommerce or GenerateBlocks, whichever is going to achieve that.
Many thanks,
Gabrielle
I see. Thank you for including a link to your reference site.
You would need a third party plugin to achieve as such. You would probably also need a way to create Custom Fields so you can group books (I personally use Advanced Custom Fields for stuff like these).
For instance, you can create a custom field which accepts a category for your products. This category would determine if a book is part of which series. Then through another third party plugin or custom code, you can query books which is part of the series of the current product through the custom category field you created.
GenerateBlocks has yet to have a Query Block, however, it is planned to have one soon. Another plugin that could query related posts is WP Show Posts(this is the one set to be merged with GenerateBlocks). You can also explore other plugins with such functionality.
I’m not sure if another plugin can provide both functionalities in one (group books in a series and query them).
Perhaps it would be also good to reach out to the support of the Ecommerce plugin you're planning to use if they have an insight on how to do this best or are you just planning to create a custom post type and link the actual product page of the product in the custom post type post page? This would work as well.
Hope this clarifies. :)
Hi Fernando, thanks for all the great info. I think I confused the issue by saying “product.” We’re not selling directly from the site, just wanting to be able to 1. show visitors the range of books in each series, and 2. allow them to click on the cover and go to the individual book page. (They can choose to buy from the retailer links on those pages.)
So all I really need is to display linked images.
Thanks,
Gabrielle
I see. How are you adding Books? Are the Books a Custom Post Type?
If you have your Books as a Custom Post Type, you should be able to query Books from the same category or the same meta key if you have a custom field to group these books in one “series”.
GenerateBlocks will have a Query Loop functionality soon that should be able to do as such.
For now the plugin set to merge with GenerateBlocks, WP Show Posts, should be able to query the “images” from other Books of the same category or series.
Hope this clarifies. :)