I created and slider of recent posts. Each post has a field where you can pick up a background color for the single post page.
I want the slider to show the different background depending on which post you’re visualizing. I tried using <?php the_field( ‘background’, $post->ID ); ?>; as a background color style but it only picks the background color from one random post and shows the same in every slide.
Is there any way to accomplish that?
Thanks