simple php question
-
hello, i hope this is simple question for php programers.
i have wordpress code:
<?php glmdobcatranpost('21','0','2'); ?>
and on the place where is 0 (zero) i want to add this
<?php foreach((get_the_category()) as $category) { echo $category->term_id . ' '; } ?>
thank you coders.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘simple php question’ is closed to new replies.