Support » Fixing WordPress » Roles in content

  • hi, I need to get Role A user content. If the dam code into footer.php works, but if you do content also, so no.

    This code is:

    $user = new WP_User( $user_ID );
    if ( !empty( $user->roles ) && is_array( $user->roles ) ) {
        foreach ( $user->roles as $role )
    echo .$role;}

    I have plugin Exec-PHP.



  • The topic ‘Roles in content’ is closed to new replies.