Get Parent Custom Taxonomy Term and Color Div background
You’ll have to adjust the markup to suit your specific needs, but the easiest solution would use a post_class filter on the post_class() template tag, to output appropriate classes. For example, in your template, you need to call post_class(), such as: <div <?php post_class(); ?>> <div class=”car_type”>Ford</div> (background green) Post Title<br> Post Content<br> </div> Then, … Read more