Slider within Single not populated with Slides from ACF Pro

Hi there!

I have created a Cornerstone Single with a column containing a an image slider with pagination and a second column containing some product details —both the slider and the product information are populated by ACF fields.

The slider to the left shall display a grid with the respective image coming from a looper {{dc:looper:field key “slide_image”}} inside a cell and the cell itself shall be populated with ACF-filled CSS background information.

When applying the Single to my page however, I do not see any of the slides from my ACF repeater group …

What am I doing wrong here?

Regards,
Jens

Hi Jens,

Thanks for reaching out.
It will be very difficult to tell what is exactly happening on your end without investigating your site. Can you please share the URL of your website and also share the admin credentials in the secure note, if that requires investigating it further? The credentials should include,

– WordPress Site URL & Login URL
– WordPress Admin username/password

To create a secure note, click the key icon underneath any of your posts.

Thanks

Hello @Paritor,

You will use Looper Provider Dynamic Content: {{dc:acf:post_field field="image_slider"}}:

Screenshot 2023-02-18 at 9.47.07 AM

And then for the image source, the dynamic content code will be: {{dc:looper:field key="slide_image"}}

Off course, your structure will have to be this:

  • Slide Container is the Looper Provider Dynamic Content: {{dc:acf:post_field field="image_slider"}}
    - Slide is the Looper Consumer
    - Img element will have {{dc:looper:field key="slide_image"}} as the src

You do not have to nest the Loopers in your page. If the ACF field is a repeater, it needs to have its own looper.

Hope this helps.

Wow, excellent! Thank you, @ruenel! I used your demo section and adapted it to my needs.

Hi @Paritor,

Glad that we are able to help you.

Thanks

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