WordPress.org

Forums

function to get category name of a post (1 post)

  1. redtricycle
    Member
    Posted 8 years ago #

    I'm trying to edit mdv's plugin to not display posts from a certain gallery. I looked through the functions, but I can't find the function name that will work for something like below:

    if ($post->cat_name != 'Gallery') //Don't post things in galleries category

    $posts->get_category_name()...? Something like that?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags