[Resolved] Custom Display on Members Directory
-
I’ve modified the members-loop.php file so that my Members Directory page will display the list of members in a certain way (as shown below, for example purposes).
Member 1
Small Poodle
Los AngelesMember 2
Large Collie
BostonMember 3
Large Dalmatian
ChicagoMember 4
N/A No Dog
MiamiFollowing is the code I’ve placed in the members-loop.php file to successfully display the above results on the Members Directory page.
bp_member_profile_data('field=Dog Size'); echo ' '; bp_member_profile_data('field=Dog Breed'); echo '<br>'; bp_member_profile_data('field=Dog Weight'); ?>
Question: Is it possible for me to not display the line for ‘N/A No Dog’ whenever a member has specificed “No Dog” in the ‘Dog Breed’ field on their profile? For example, in the above, I still want the Member 4 to be shown in the list of all members. However I do not want the ‘N/A No Dog’ line (which comes from the Dog Size and Dog Breed fields entered on their profile) to be displayed underneath their username. I would only want their location, Miami, to be shown.
Is this possible?
- The topic ‘[Resolved] Custom Display on Members Directory’ is closed to new replies.