Archived topic
Same image from the same post coming in different sizes in 3 query loops
17 replies · Started by Minhaz on December 22, 2022
I know that 1 query block can give me the same result. In the beginning, I did use 1 query block instead of 3. But the issue that I faced is with the buttons. For example, if I needed to add three different links in "Check Price" button, I could not do that from within the same Post Template. If I add one link in a button, then all "Check Price" buttons in three columns of contents have the same link. This is the reason I tried three query blocks.
Are you adding these links manually?
The best approach to do this is to add these links through a plugin called ACF. Reference: https://www.advancedcustomfields.com/resources/getting-started-with-acf/
Then retrieve it through a GB Button Block's dynamic settings.
Creating 3 different Query Loops for this would be inefficient. To load your site, it will communicate 3 more times with your server to retrieve the database data, as opposed to just one time. This is performance-inefficient.
The alternative would be not to use a Query Loop Block. Just add the data through Generate Blocks Dynamic Feature. The same result can still be achieved.
"Creating 3 different Query Loops for this would be inefficient."
Yes, I agree 100%.
Thanks for letting me know about the ACF plugin. I'll try it soon. I appreciate your patience with me. :)
