• Hello, I’m trying to get the category in a string var and i’m not being able to do it. the_category() shows the category, but I cannot get it as a string. please help me.

    thank you!

Viewing 1 replies (of 1 total)
  • Hi f.perez.

    Maybe:
    <?php

    $nameofvariable = the_category()

    ?>

    Its only a idea, i dont know if it work.

Viewing 1 replies (of 1 total)
  • The topic ‘show category in single.php’ is closed to new replies.