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).
N/A No Dog
Following 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?
You must be logged in to reply to this topic.