-
Author
-
October 10, 2017 at 05:10 #176194jackbeanParticipant
Hello,
I followed instructions and codes from the link below in order to highlight certain profile fields onto the buddyPress member page.
I also added the two fields “Location” and “Specialization” for the users and some values for these two fields. (See attached doc).
But the codes did not appear to be do anything. I’m not sure what the problem is, would appreciate some help please.
Thank you!
JB
Attachments:
You must be logged in to view attached files.October 10, 2017 at 05:22 #176197jackbeanParticipantHello again,
Just want to mention that the newly added fields are been highlighted on the individual member’s profile page, BUT they’re not showing up on the member directory page.
Please see doc attached.
thanks!
JB
Attachments:
You must be logged in to view attached files.October 10, 2017 at 18:22 #176243LauraModeratorHello, i would need to check the files and wp-admin ( ftp and wp-admin access )
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura Solanes - Graphic Designer and Web Designer
Please be patient as I try to answer each topic as fast as i can.
If you like the theme or the support you've received please consider leaving us a review on Themeforest!
Always happy to help you 🙂
October 11, 2017 at 21:07 #176366jackbeanParticipantHi Laura,
My boss is hesitant to allow full access to the site… 🙁
Can you please check with your colleagues (say, Radu or Kieran) on this problem please.
Thank you for your patience!
Jay
October 12, 2017 at 23:25 #176482LauraModeratorHello, will assign the ticket to a higher support level who can help and advise you in your query.
Thanks! ?Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura Solanes - Graphic Designer and Web Designer
Please be patient as I try to answer each topic as fast as i can.
If you like the theme or the support you've received please consider leaving us a review on Themeforest!
Always happy to help you 🙂
October 13, 2017 at 16:43 #176544RaduModeratorHi,
The code it’s plug and play for the with exception i’ve used the field hobby thru location variable just to test and it works
It’s a little over the hand to not have access just to check in on live.
So the snippet it’s good try to pay attention to the field names, to be identically (uppercase sensible) so copy and paste the field names, make sure to not have extra spaces at the start and at the end of the field names in php script and in wp-admin -> profile fields.
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionOctober 14, 2017 at 00:04 #176583jackbeanParticipantHi Radu and Laura,
thanks for looking into the issue. I looked at your code carefully and I finally understood where my problem is! 🙂
I think this will help other customers in case anyone has the question to you:
— there are two very similar links on kleo’s support for the topic of “You can show certain profile fields on member directory ”Link 2 has the correct code for showing the extra fields in member DIRECTORY, because it is changing ‘bp_directory_members_item‘, but Link 1’s code actually changes the individual member page, and not the directory, as it changes ‘bp_profile_header_meta‘!
The code I originally used was from link 1, and it did not have the correct object reference.
Thanks again for looking into the issue. Appreciate your help very much!
JB
October 16, 2017 at 15:27 #176850RaduModeratorHi
Great that you have figoured out, the links1,2 are not added , provide the link to correct the hook
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionOctober 16, 2017 at 17:10 #176879jackbeanParticipantHi Radu,
The link with the “bad” hook is here:
if you read the last line of code where the “add_action” is for ‘bp_profile_header_meta‘.
But the code is not really “bad” as it does do something interesting and desirable, which is to highlight certain fields in the individual member’s page.The problem is that in the link, the description is for the function to “show certain profile fields on member directory“, and that’s where the confusion was as I was looking for the change in member directory.
Maybe you can keep the code and just change the link’s description 🙂
Thanks,
Jay
October 17, 2017 at 15:21 #176955RaduModeratorHi,
The article it’s about how to add the fields on the member profile header and we have separate article for that, one for member header one for directory.
I’ve interlinked them to can find them easier.
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution -
AuthorPosts
The forum ‘Bugs & Issues’ is closed to new topics and replies.