Display Ad Category In Listing Without Hyperlink?
Ok, so I'm looking to display the ad category of a post within the ad listing itself...
More specifically, just outside <?php the_content(); ?> in the "single-ad_listing.php" file.
So far, I've got this to work...
PHP Code:
<?php if (get_the_category()) the_category(', '); else echo get_the_term_list($post->ID, 'ad_cat', '', ', ', ''); ?>
... However, it shows up hyperlinked to the category.
How do you get rid of this hyperlink, so it just displays the text?
Thanks!
- James.