Create a gist now

Instantly share code, notes, and snippets.

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