• eskic

    (@eskic)


    When i use code to show category color, i get black color instead the color i choose.
    <?php
    $category = get_the_category();
    $the_category_id = $category[0]->cat_ID;

    if(function_exists(‘rl_color’)){
    $rl_category_color = rl_color($the_category_id);
    }
    ?>
    <h1 style=”color: #<?php echo $rl_category_color; ?>;”><?php the_title(); ?></h1>
    <p style=”background: #<?php echo $rl_category_color; ?>;”>Awesome Category Color!</p>
    So de above code don’t work for me.

    https://www.ads-software.com/plugins/colored-categories/

  • The topic ‘Can't get this to work’ is closed to new replies.