title: Different color for tags in Wordpress?
body: <p>So, I'm trying to give a certain tag a specific color in the front-end. </p>
  
  <p>Let's say I have these two tags: private and business. I want the private tag to have a yellow color and the business tag to have a blue color.</p>
  
  <p>I echo the tags with this code:</p>
  
  <pre><code>&lt;?php
      $posttags = get_the_tags();
       if ($posttags) {
        foreach($posttags as $tag) {
         echo $tag-&gt;name . ' ';
        }
       }
     ?&gt;
  </code></pre>
  
  <p>How can I give them the color I want, to be displayed at the front-end?</p>