• I’m working on a template, and I’m in the post loop, trying to get the category *name* of the post. the_category() function returns the category in a list format, I just want something that echo’s back the name of the category…
    Can someone direct me to the appropriate function, I can’t seem to find one in the template-functions-category.php include.
    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Anonymous

    edit: make that “something that *returns* back the name of the category, not echo’s it”

    Thread Starter Anonymous

    nm, found i had to edit the css in order to stop it from being returned as a list… seems odd that a php function would return a string indicating a css class name… what happened to seperation of data and design?

    slanted – see the first paragraph of my post here.

    I just discovered this problem too. What a pain.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘category function to return category name?’ is closed to new replies.