1<?php // ACF in Taxonomy
2
3// get the current taxonomy term
4$term = get_queried_object();
5
6
7// vars
8$image = get_field('image', $term);
9$color = get_field('color', $term);
10
11?>
12<style type="text/css">
13
14 .entry-title a {
15 color: <?php echo $color; ?>;
16 }
17
18 <?php if( $image ): ?>
19 .site-header {
20 background-image: url(<?php echo $image['url']; ?>);
21 }
22 <?php endif; ?>
23
24</style>
25<div class="wrap">
26
27 <?php // Remaining template removed from example ?>