Support » Fixing WordPress » 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 ‘adding username to post_class’ is closed to new replies.