This topic has 2 replies, 3 voices, and was last updated 9 years by kcdrip.

  • Author
  • #43575
     branislavski1
    Participant

    I want to be able to display member type to all member visiting someones profile.
    Curently member type is visible only on your own profile.
    I am refering to for example “free trial” on demo profile page.

    Purpose of this is to promote who the premium members are.

    #43585
     sharmstr
    Moderator

    Put this in your childs functions.php file

    COPY CODE
    
    function kleo_membership_info()
    {
      global $membership_levels,$current_user;
      if (! $membership_levels) {
        return;
      }
      
     
        if (isset($current_user->membership_level) && $current_user->membership_level->ID)
        {
          echo '<a><span class="label radius pmpro_label">'.$current_user->membership_level->name.'</span></a>';
        }
        else
        {
          echo '<a><span class="label radius pmpro_label">'.__("Upgrade account",'kleo_framework').'</span></a>';
        }
    }
    

    The profile header is due to be revamped in the next Kleo update. I havent seen that code yet, so no guarantee that this will work after the update.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #50881
     kcdrip
    Participant

    So I am trying to do the same thing @branislavski1 is trying to do. It did show membership levels on everyone profile but it was my own. Could this be because of the update?

Viewing 3 posts - 1 through 3 (of 3 total)

The forum ‘KLEO’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?