Archived topic
Page List alternative
8 replies · Started by Fabiano on May 29, 2022
I've got this page (the "Products" page) that lists my different products.
I've got a page for each product. Each product page has been tagged as a "product"
What's the best way to add a list of these products' pages to this Products page?
I see that there is this "Page List" block, but that brings all my pages in.
Is there a way to edit this Page List to include only the pages that are related to a specific product?
Right now I manually inserted a list with the different products, but wanted to automate the process in case we add new products in the future.
Hi there,
I believe the Query Loops block in the upcoming GB 1.5 which is currently in Beta would be what you are looking for:
https://generateblocks.com/generateblocks-1-5-dynamic-data-query-loops-image-blocks/
Let me know if this helps :)
Thanks for this, I tried using the Query Loop, but am getting blank results.
I used the following parameters:
Select post type: "Pages" > Posts per page = "10" > Taxonomies = "Tags" > Select taxonomies = "product"
(when you look at the page, you'll see the list with the manually entered list of Products, and below it should be the Query Loop block (which shows blank results)
Hi Fabiano,
Can you try clearing all caching mechanisms set on your website?
To test, can you also try using a different taxonomy?
Tested adding a Query Loop Block on my test website’s product page and it worked as expected.
See: https://share.getcloudapp.com/z8um7wlO
Also see: https://share.getcloudapp.com/Z4uAPzm7
Kindly let us know how it goes.
No luck :(
It looks like you tried using posts and products, not sure if the issue is with pages (my case) specifically?
Hi Fabiano,
How did you add tags to pages? Are you using a plugin for that?
I can see that the query loop is outputting some pages, what's the dynamic settings for the headlineblock?
https://www.screencast.com/t/0K5MUuMT
I got it!
How do I add a hyperlink to each of those headlines so that the user is directed to each page?
Nevermind, I got it now!
Great! Glad you figured it out :)