Member Directory – how to add spacing between User Profile fields?
First off, I’m new to WordPress/BuddyPress and PHP. So I’ve been teaching myself as I go.
How do I get spaces to be added in between the text for the Extended User Profile fields that I’ve included on the Members Directory page?
I’ve modified the members-loop.php file to include the following line of code, but it results in the text for the Extended User Profile fields on the Members Directory page being displayed immediately next to each other (but without any spacing in between the text for those fields). What syntax do I need to use to get spaces in between the below-referenced fields Test A, Test B, Test C?
Currently, it’s displaying on the Members Directory page like this: TestATestBTestC
But I want it to display like this: TestA TestB TestC
Here’s my code:
echo bp_member_profile_data('field=TestA'); bp_member_profile_data('field=TestB'); bp_member_profile_data('field=TestC');
You must be logged in to reply to this topic.