WordPress.org

Forums

Try to get only the category name (4 posts)

  1. DucoSebel
    Member
    Posted 3 years ago #

    Hello!

    I'm trying to get only the category variable from a post. Currently it using the get_the_category_list(' ') function. But the output is far more then only 'video' or 'new products' He gives me the whole taglist...

    Is there any function that gives me only the name of the tag?

    Thanks for answering!

    Duco

    p.s. I need is for http://jerrydewit.nl. There is above every post a category button. I need only the string 'video'. I need it tho use it somewhere else.

  2. nsathees
    Member
    Posted 3 years ago #

    you can pick the category name for a particular post. I think I got your question correct

  3. alchymyth
    Forum Moderator
    Posted 3 years ago #

  4. DucoSebel
    Member
    Posted 3 years ago #

    @ alchymyth: Thank you! That's precisely what I mean!

Topic Closed

This topic has been closed to new replies.

About this Topic