We're merging with GenerateBlocks! Learn more here.

Support Forum

Please login to receive premium support.

Support for the free plugin can be found here.

Home Forums Pro Support Output Custom Field in Div Class Reply To: Output Custom Field in Div Class

#5488
Tom
Keymaster

You’d have to change the variable:

$mobile_image = get_field('advertisement_mobile');

Then do this:

<div class="mobile-image">
    <?php echo $mobile_image; ?>
</div>

<div class="desktop-image">
    <?php echo $image; ?>
</div>