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?
Viewing 1 post (of 1 total)
You must be logged in to reply to this topic.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users