Forums

Try to get only the category name (4 posts)

  1. DucoSebel
    Member
    Posted 10 months 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 10 months ago #

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

  3. alchymyth
    The Sweeper
    Posted 10 months ago #

  4. DucoSebel
    Member
    Posted 10 months ago #

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

Reply

You must log in to post.

About this Topic