• I’m currently developing a theme for WordPress, and want to be able to show on posts ‘This was posted on DATE in CATEGORY.’

    The CATEGORY part is the issue here.

    I can display the current category using the code:

    <?php the_category(', ') ?>

    …but this not only displays this category, but makes the text linkable so the viewer can see more posts in the same category.

    Is there any way to show just plain text the category name, without having this as linkable text?

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Remove link to category archive in posts, but keep the text’ is closed to new replies.