Skip to main content
3 of 6
added 14 characters in body
Jeremi Liwanag
  • 263
  • 1
  • 8
  • 18

Advanced Custom Field User Help URL

Hi I'm using ACF or Advanced Custom Fields which i saw here a while ago..

What i want is to output a second featured image in the homepage..

Question: 1

<div class="jpl-widgets-d" style="background: url('<?php the_field('featured_home_page_image'); ?>') no-repeat;">
</div>

Is it possible to use the php tag inside an style?

Anyway, i also tried using this code

<img src="<?php the_field('featured_home_page_image'); ?>" alt="" />

But it's not working ..

Field Name: featured_home_page_image Field type: Image Return Value: URL

Help. thanks!

Jeremi Liwanag
  • 263
  • 1
  • 8
  • 18