Skip to main content
added 3 characters in body
Source Link
Jeremi Liwanag
  • 263
  • 1
  • 8
  • 18

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 The ACF should output the URL of the image i uploaded..

Here's what i'm trying to dothe plugin documentation LINK

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

Help. thanks!

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!

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>

<?php the_field('featured_home_page_image'); ?> = URL OF THE IMAGE The ACF should output the URL of the image i uploaded..

Here's the plugin documentation LINK

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

Help. thanks!

added 72 characters in body
Source Link
Jeremi Liwanag
  • 263
  • 1
  • 8
  • 18

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!

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="" />

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!

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!

added 60 characters in body
Source Link
Jeremi Liwanag
  • 263
  • 1
  • 8
  • 18

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="" />

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!

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!

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="" />

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!

added 14 characters in body
Source Link
Jeremi Liwanag
  • 263
  • 1
  • 8
  • 18
Loading
edited tags
Link
kaiser
  • 50.8k
  • 27
  • 150
  • 244
Loading
Source Link
Jeremi Liwanag
  • 263
  • 1
  • 8
  • 18
Loading