WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] adding username to post_class

[Resolved] adding username to post_class

Viewing 1 replies (of 1 total)
  • Ahh found a solution:

    $curauth = get_userdata(intval($post->post_author));

    Then use:

    post_class($curauth->user_login);

    Thanks!

Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] adding username to post_class’ is closed to new replies.
Skip to toolbar