Comine 2 php codes

Hey guys
I’m working on a wordpress tags.

I want to show each tag in different color.

How can I combine those 2 php


$rand = array('0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f');
$color = '#'.$rand[rand(0,15)].$rand[rand(0,15)].$rand[rand(0,15)].$rand[rand(0,15)].$rand[rand(0,15)].$rand[rand(0,15)];



<?php the_tags('Tags: ', ', ', '
'); ?>[/php]

I see what you want to do…

But, you 'll need to modify the function “the_tags”, and I think that’s located in the wp-includes/category-template.php

So you’ll needed to combine you’re first PHP script with the code inside the category-template.php under the_tags function which you didn’t show us.

Sponsor our Newsletter | Privacy Policy | Terms of Service