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?
Viewing 14 replies - 1 through 14 (of 14 total)
Viewing 14 replies - 1 through 14 (of 14 total)
- The topic ‘Question – PHP variables’ is closed to new replies.