ACF Failing to Load BG image

Hi there,

The following request on from the ACF “room_image1” is failing to load as the background image on the section.

[cs_section bg_image="’.get_post_meta( get_the_ID() , ‘room_image1’, true ).’" parallax=“true” separator_top_type=“none” separator_top_height=“50px” separator_top_angle_point=“50” separator_bottom_type=“none” separator_bottom_height=“50px” separator_bottom_angle_point=“50” class=“black-opaque” style=“margin: 0px;padding: 45px 0px;”]

Please advise
`

Hi There,

Please provide your URL and let us know how to replicate the issue.

Thank you!

https://retreathome.co.za/rooms/geranium/

Hey there,

Check the Return Value if you’re using the Image field. It should be the URL.

Try get_field('room_image1') instead of get_post_meta.

Please note that making ACF Pro work for the section’s background requires custom development which is outside the scope of our support. If my suggestion doesn’t work, you’ll need to hire a third party developer to investigate. We do have an in-house custom development team that offer paid services, who may be able to assist. They can be contacted at [email protected] if this is of interest to you.

See https://www.advancedcustomfields.com/resources/displaying-custom-field-values-in-your-theme/ for additional learning.

Thank you for your understanding.