• Under each post, I would like to be able to just display the category as text.
    I dont want them to be linked to show ‘all posts from that category.
    Just display the category as text.
    How will I do that ?

Viewing 4 replies - 1 through 4 (of 4 total)
  • You may have to modify the source code. Are you down for that? Or you may style it to disguise it so that will look like non-hyperlinked text by removing the underline, the different color, the hand pointer etc. (it’ll be still clickable though)

    Actualy, it is possible through a plugin. I’ve got a plugin that converts it from text into graphic images. Wouldn’t take much to convert to return plain text instead.
    Tg

    <?php $categories = get_the_category(); echo $categories[0]->cat_name; ?>
    it is really ugly but unless you want to hack the function files it is the only way.

    Thread Starter sadish

    (@sadish)

    Thanks Everyone,
    I took the nice category plugin and modified it to just show it as text.
    I call this as ‘the_text_category’
    Its live on https://v2.simpleinside.com.
    If anyone is interested I can release it as a plugin.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Category as Text and Not Links’ is closed to new replies.