Looper and ACF

Hello guys.
I have a strange problem here. I’ve managed to pull desired media (images) by taxonomy via a looper provider and feed those into a looper consumer. My media (images) have 2 ACF fields. I can’t find those fields in the looper consumer fields option, thus I can’t feed them into e.g. a text element.

PLS see secure note for details and credentials.

Thank you very much for any advice.

I’ve found a workaround for the functionality I need. But the issue persists.

Hello Ondrej,

Thanks for posting in!

We cannot seem to log in or view the site. This error is showing:

  • see the secure note below

Best Regards.

OK. That is the GeoIP Protection.

Hello Ondrej,

You can use this dynamic content:

<div class="image-item">
    <img src="{{ post.featured_image({}) }}" alt="{{ looper.field({"key":"title"}) }}">
    
    <div class="folder-info">
        📁 <span class="folder-name">[premio_folder id="{{ looper.field({"key":"ID"}) }}"]</span><p>
        <?php if (is_user_logged_in()): ?>
            <button class="move-to-nope btn btn-sm" data-id="{{ looper.field({"key":"ID"}) }}">Move to Nope</button></p>
        <?php endif; ?>
    </div>
</div>

If you want to check what are the fields returned by the looper, you can always use {{ looper.debug_consumer }}.

Best Regards.

Hi ruenel

As said, I solved my problem already. I just wonder, why the provider does not “provide” the ACF fields. That’s it. And I already tried the looper.debug_consumer. It does not list the two ACF fields.

Hey Ondrej,

If the ACF field is not returned by the provider, it could be an array nested inside one of the fields. When the looper.debug_consumer does not return the field; it could mean the looper is incorrect or needs a tweak.

Thanks.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.