Home Forums General Issues image array with next_post->ID


image array with next_post->ID

  • hello
    I have image custom field which passed from url image into array mode.

    And in my post, I added this kind of code to have navigation arrows with pictures :

    <img uk-img data-src="<?php the_field('image', $previous_post->ID); ?>">

    this was working fine when image was in url mode, but now, obviously, this does not work anymore.

    Would someone help me to find the right way to set it with $image['url'] ? I tried various code, but no way to make it work :'(

    thx for your help !

Viewing 1 post (of 1 total)

The topic ‘image array with next_post->ID’ is closed to new replies.