-
Notifications
You must be signed in to change notification settings - Fork 35
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Hello
Thanks for the plugin.
In my code I sometimes find myself needing to retrieve ACF fields to use inline style for image background in html. Here is an example:
<?php $background = get_field('background'); ?>
<?php $backgroundUrl = wp_get_attachment_image_src($background, 'full'); ?>
<div class="contact__background" style="background: url('<?php echo $backgroundUrl[0]; ?>') no-repeat center; background-size: 100%;"></div>The client can put png or svg in the ideal. It's working well before the export.
The concern is that once the export is finished this type of field is empty like that:
<div class="contact__background" style="background: url('') no-repeat center; background-size: 100%;"></div>Is this a bug?
Thank you!
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working