Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
ACF Example 2
<div class="grid_6 spotlight project" style="background-color:<?php the_field('background_color'); ?>">
<a href="<?php the_permalink(); ?>">
<img src="<?php the_field( 'homepage_slider_image' ); ?>">
</a>
<h4>
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
</h4>
<?php the_field( 'description'); ?>
<p>
<a class="btn blue" href="<?php the_permalink(); ?>" style="background-color:<?php the_field('button_color'); ?>">
Read More &rarr;
</a>
</p>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.