Question – PHP variables
Hey all… question. I need to get a hold of the name of the category of each post but I can’t figure out how.
<?php the_category(‘ &’);?>
That’s the tag that I’m looking at… I’ve tried:
<?php $cat=the_category; ?>
But that only prints “the_category”, not the actual contents of the field. Any ideas?
- The topic ‘Question – PHP variables’ is closed to new replies.