WordPress.org

Ready to get started?Download WordPress

Forums

get_query_var and return array of categories? (2 posts)

  1. Douglas Karr
    Member
    Posted 3 years ago #

    The following wp_query function returns a single category that the post is published within:
    get_query_var('cat')

    Is there a means of returning multiple categories that the post may be published within?

  2. alchymyth
    Forum Moderator
    Posted 3 years ago #

    get_query_var('cat') returns the category of a category archive.

    Is there a means of returning multiple categories that the post may be published within?

    where?

    possibly with:
    http://codex.wordpress.org/Function_Reference/get_the_category

Topic Closed

This topic has been closed to new replies.

About this Topic