Display Custom Field on Memberlist

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jauhari
    Member
    • Apr 2006
    • 35
    • 3.6.x

    Display Custom Field on Memberlist

    How to display some of my custom fields on memberlist.php?

    I have several custom fields and I want this custom fields display on my memberlist.php, how to do that?

    I was setting my custom field like this

    Show on Members List *Yes No

    But why, when I try to check on my member list, my custom fields doesn't show up? when I need to edit the templates, which one?

    I also need to make my custom fields sort able

    How to do that?

    Thanks
    Free WordPress Themes
    Please Join #1 Indonesia WordPress Community
  • Gray Matter
    Senior Member
    • Jun 2005
    • 208
    • 3.7.x

    #2
    Have you edited any of the MEMBERLIST templates? If so, make sure that this is still intact within the MEMBERLIST template:

    Code:
    <if condition="$show['customfields']">$customfieldsheader</if>
    and that this line is still intact within the memberlist_resultsbit template:

    Code:
    <if condition="$show['customfields']">$customfields</if>
    Twitter

    Comment

    • jauhari
      Member
      • Apr 2006
      • 35
      • 3.6.x

      #3
      Originally posted by Gray Matter
      Have you edited any of the MEMBERLIST templates? If so, make sure that this is still intact within the MEMBERLIST template:

      Code:
      <if condition="$show['customfields']">$customfieldsheader</if>
      and that this line is still intact within the memberlist_resultsbit template:

      Code:
      <if condition="$show['customfields']">$customfields</if>
      What must I edit?
      Free WordPress Themes
      Please Join #1 Indonesia WordPress Community

      Comment

      • Gray Matter
        Senior Member
        • Jun 2005
        • 208
        • 3.7.x

        #4
        Originally posted by jauhari
        What must I edit?
        You don't have to edit anything unless you've removed those two lines of code. Have you?
        Twitter

        Comment

        • jauhari
          Member
          • Apr 2006
          • 35
          • 3.6.x

          #5
          Originally posted by Gray Matter
          Have you edited any of the MEMBERLIST templates? If so, make sure that this is still intact within the MEMBERLIST template:

          Code:
          <if condition="$show['customfields']">$customfieldsheader</if>
          and that this line is still intact within the memberlist_resultsbit template:

          Code:
          <if condition="$show['customfields']">$customfields</if>
          Thanks, right now my problem was solved, I just need to setting on user listing and profile viewing.
          My next question is, how to add sorting by custom field?

          Please Help
          Free WordPress Themes
          Please Join #1 Indonesia WordPress Community

          Comment

          widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
          Working...