WordPress.org

Forums

Getting a list of Categories for a post (2 posts)

  1. ssdesign
    Member
    Posted 5 years ago #

    Hi,
    can anyone help me with this?

    For every post, I want to list down the categories in a list format.

    I noticed that that "the_category()" function only accepts "seperator", "parents" and "post_id".
    It does not accept "before" and "after" parameters like some other functions like Archives or Tags.

    Is there a workaround?
    How can I get it to generate a list like:

    • Cat-1
    • Cat-2
    • Cat-3

    For every post.

    Thanks a lot.

  2. MichaelH
    Member
    Posted 5 years ago #

    Might want to resort to Function_Reference/get_the_category

Topic Closed

This topic has been closed to new replies.

About this Topic