New answers tagged


First of all, remember that a post can have multiple categories, so you'll have to handle an array and then print the results. To get see what categories are attached to your post, print the value from the get_the_category function inside a <pre></pre> (which formats the code): $categories = get_the_category(); echo '<pre>'; var_dump($...

Top 50 recent answers are included