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


Awesome, that worked! Thank you!

Just one or two more questions and I swear I’ll be done with this.

If I had more than one image field how would I go about inserting that?

For instance at the moment I have:
$image = get_field('advertisement_desktop');

But I also have this field that I want to include
$image = get_field('advertisement_mobile');

I also need a way to display one or the other depending on breakpoint. Which I was going to do with CSS. Is there a simple way to output these in separate divs classes?