Support » Fixing WordPress » Return all category id's from single post

  • Resolved jakethebear

    (@jakethebear)


    this is something that should be stupidly easy, but i can’t find a straight answer, and the documentation on ‘wp get post categories’ is pretty rubbish. i’m looking to get all the id’s of all the categories assigned to a single post in order to use them as classes. any help much appreciated. thanks in advance.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Return all category id's from single post’ is closed to new replies.