Site logo

[Support request] Same image from the same post coming in different sizes in 3 query loops

Home Forums Support [Support request] Same image from the same post coming in different sizes in 3 query loops

Home Forums Support Same image from the same post coming in different sizes in 3 query loops

Viewing 3 posts - 16 through 18 (of 18 total)
  • Author
    Posts
  • #2471157
    Minhaz

    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.

    #2471163
    Fernando
    Customer Support

    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.

    #2471164
    Minhaz

    “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. 🙂

Viewing 3 posts - 16 through 18 (of 18 total)
  • You must be logged in to reply to this topic.