Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: [Resolved] Display profile fields to user profile page …how to

@butlerweb

Participant

Where are you putting your code? Directly in the template file or elsewhere?

And mine were Multiselect boxes, rather than checkboxes, but it should give you the same array output. For those, I had to parse the strings into something a bit more readable.

Again, I use xprofile fields, but this is what my code looks like:

<h4><strong>Arts Subcategories:</strong> <?php echo (implode( ', ', (array) xprofile_get_field_data ('Arts Subcategories'))); ?></h4>

I did not want to edit template files so I used a plugin called ‘Code Snippets’ which allows me to write code without editing the theme’s functions.php file or, like I said, the BP template files. However, to add them to the pages I had to use the “add_action()” hook.

Skip to toolbar