Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › How to show BP Xprofile fields in user results – Part 2
This topic contains 9 replies, has 2 voices, and was last updated by Ernest Marcinko 5 months, 1 week ago.
- AuthorPosts
- March 20, 2024 at 7:32 am #47432
Update for ticket https://wp-dreams.com/forums/topic/how-to-show-bp-xprofile-fields-in-user-results/
Unfortunately the adjusted snippet did not help. With this snippet and with the plugin version 4.26.7 installed, the contents of the XProfile fields are still not displayed. So, I rolled back to version 4.26.2 again.
May I ask you to take another look at this?
March 20, 2024 at 10:57 am #47449Hi,
Can you add temporary FTP and back-end access? I can try to debug it if you want to.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
March 20, 2024 at 3:35 pm #47488You cannot access this content.March 21, 2024 at 3:42 pm #47515You cannot access this content. Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
March 22, 2024 at 8:15 am #47530Hi Ernest
I just retested the credentials with Cyberduck and FileZilla. It should work. But you have to make sure, that you use port 21 and an unencrypted connection. If you use FileZilla you can force this parameters via the Site Manager.
March 25, 2024 at 5:21 pm #47557Thanks!
I was using the IP address, that didn’t work, now it’s fine. I managed to find the problem and fixed it. This was a yet unknown issue, so I will make sure to fix it in the upcoming release.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
March 26, 2024 at 11:49 am #47583Hmm, you’re right, it looks like the IP has changed. Sorry!
Great news, thank you! Do I still need the custom snippet with the latest version of the plugin? If so, can I leave it as it is at the moment?add_filter('asp_user_advanced_field_value', 'asp_xprofile_user_advanced_field_value', 10, 3); function asp_xprofile_user_advanced_field_value($value, $field, $user) { if ( empty($value) ) { global $bp; $args = array( 'field' => $field, 'user_id' => $user->id ); $data = bp_get_profile_field_data($args); if ( !empty($data) ) { var_dump($data); return $data; } } return $value; }
March 26, 2024 at 12:02 pm #47584Yes – please keep that custom snippet, it should work from now on.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
March 26, 2024 at 12:05 pm #47585Alright, thank you.
March 26, 2024 at 12:13 pm #47586You are welcome.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
- AuthorPosts
You must be logged in to reply to this topic.