Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to pull blog category in activity loop?

  • In the Activity stream, blog post activity displays as “XYZ wrote a blog post”

    I’d like to display “XYZ wrote a blog post in ” followed by the name of the blog category containing the post (I’m using one cat to a post).

    I’ve tried various syntax including `get_the_category($post->ID)` and declaring `global $post` but the closest I’ve gotten to a solution is “XYZ wrote a blog post in Array”.

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to pull blog category in activity loop?’ is closed to new replies.
Skip to toolbar