Home Forums Plugin Support AffiliateWP Ranks Rank Shortcode to show only Current Rank

5 replies, 3 voices Last updated by Christian Freeman 2 years, 6 months ago
    • Alvin Gan
      Participant
      @designlab9898
      #12664

      do you have any shortcode that will display this affiliate’s current rank only. i don’t want to show Previous or Next Rank. for example, i want to use it in Affiliate Area page, such as Hi John, your current rank is : [current_rank]

      in the AffiliateWP MLM Settings, i enabled Affiliate Data checkbox -> Ranks
      but in the frontend, when i hover any affiliate’s avatar, i don’t want it to show Previous or Next Rank. i only want it to display Current Rank. can it be done?

    • Alvin Gan
      Participant
      @designlab9898
      #12665

      i also dont want the Affiliate Rank Display to display a table of Last Rank, Next Rank. can it show Current Rank only ?

    • Christian Freeman
      Participant
      @christianf
      #12685

      Hi Alvin,

      You can use the [affiliate_rank] shortcode to display the Current Rank of the affiliate viewing the page.

      You would have to modify the Affiliate Dashboard (URLs tab) template, or use an action hook, in order to add that custom text and Rank info there.

      We’ll have a full list of the shortcodes for Ranks added to the documentation soon. We’re currently working on some updates which will include new features, so this will all be updated.

    • Alvin Gan
      Participant
      @designlab9898
      #12746

      i don’t want the pop-up when hover on affiliate avatar to show Last Rank and Next Rank. only want to show a simple line : Current Rank : <rank>

      is that possible?

    • Alvin Gan
      Participant
      @designlab9898
      #12865

      hi, i am waiting for your response on this thread

    • Christian Freeman
      Participant
      @christianf
      #12871

      Sorry for the delay Alvin,

      Here’s a CSS code snippet to only show the Current Rank:

      ul.affwp-mlm-aff-data li.rank ul li {
          display: none;
      }
      ul.affwp-mlm-aff-data li.rank ul li:first-child {
          display: block!important;
      }

      Let me know how it works for you.

Viewing 5 reply threads
  • You must be logged in to reply to this topic.