Skip to main content
5 of 6
added 72 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="" />

it should be like <img src="http://mysite.com/wp-content/uploads/2013/03/l90.jpg" alt="" />

<?php the_field('featured_home_page_image'); ?> = URL OF THE IMAGE

But it's not working ..

The ACF should output the URL of the image i uploaded..

Here's what i'm trying to do LINK

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

Help. thanks!

Jeremi Liwanag
  • 263
  • 1
  • 8
  • 18