alannascott (@alannascott-1)

Forum Replies Created

Viewing 1 replies (of 1 total)

  • alannascott


    i had this same issue.

    here’s what i did:

    in /your-theme-folder/topic.php make these changes

    //get user id
    $user_id = get_post_author_id();

    //get user role
    $role = get_user_type($user_id);

    // if user is a key master or Administrator add css class
    if ($role == 'Key Master' || $role == 'Administrator') {
    $adminclass = "class='adminpost'";
    //otherwise don't add a class
    else {
    $adminclass = "";

    <!--add your css class to the li tag-->
    <li id="post-<?php post_id(); ?>" <?php echo $adminclass; ?>>

    then style your .adminpost class however you’d like.

    hope that helps.


Viewing 1 replies (of 1 total)