- This topic has 9 replies, 2 voices, and was last updated 5 months, 3 weeks ago by Ernest Marcinko.
-
AuthorPosts
-
March 20, 2024 at 7:32 am #47432TrinerParticipant
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 #47449Ernest MarcinkoKeymasterHi,
Can you add temporary FTP and back-end access? I can try to debug it if you want to.
March 20, 2024 at 3:35 pm #47488TrinerParticipantYou cannot access this content.
March 21, 2024 at 3:42 pm #47515Ernest MarcinkoKeymasterYou cannot access this content.
March 22, 2024 at 8:15 am #47530TrinerParticipantHi 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 #47557Ernest MarcinkoKeymasterThanks!
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.
March 26, 2024 at 11:49 am #47583TrinerParticipantHmm, 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 #47584Ernest MarcinkoKeymasterYes – please keep that custom snippet, it should work from now on.
March 26, 2024 at 12:05 pm #47585TrinerParticipantAlright, thank you.
March 26, 2024 at 12:13 pm #47586Ernest MarcinkoKeymasterYou are welcome.
-
AuthorPosts
- You must be logged in to reply to this topic.