WordPress.org

Support

Support » How-To and Troubleshooting » Getting a list of Categories for a post

Getting a list of Categories for a post

  • 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.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Getting a list of Categories for a post’ is closed to new replies.
Skip to toolbar