RC1 - Image positioning and Dynamic Content

I am not sure if this is a Beta topic or a general one.

I have tried to control the image positioning of a featured image in loopers with ACF text fields assigned to posts. Twig is enabled on the website.

  1. If I try to insert the dynamic content, the fields are not listed despite the correct preview, so I have to insert the key manually.

  2. When I insert the key manually, it produces this: {{ acf.post_field({"field":"horizontal_position"}) }}. That does not work. If I change it to {{dc:acf:post_field field="horizontal_position"}}, then it works.

To be more precise, the Twig syntax does work on the Single layout, but it does not work inside loopers thata are looping the post featured image.

  1. The dynamic content picker for positioning exists on Image backgrounds for Divs, but it does not exist for positioning on the Image element.

Thanks!

This is related to the issue we’re currently having with loopers and background images. We’re going to try a fix for that in RC2, and if that works we’ll eventually fix looper values with Twig. Have a great day.

1 Like

Hi @charlie,

I just updated to RC2 and tried to replace the {{dc:post:meta key="horizontal_position"}}, with {{ acf.post_field({"field":"horizontal_position"}) }}.

The Image position moves to the default position, indicating that Dynamic content natively offered by the picker still doesn’t work.

In addition, the Position field on the image element doesn’t have the dynamic content picker:

The Div element has it:

Thanks!

2 Likes

I’ll add in the Dynamic Content picker to the Image “Position” input. Thanks for the feedback.

1 Like