I have wpForo user custom field plugin. I want to fetch the custom field data in the member's list. But it returns a string of all the data. But I want to retrieve only one field. Please check the screenshot below. I only want the city data
Notifications
Clear all
Limited Support
Our support team is currently on holiday from December 25, 2025 to January 7, 2026, and replies may be delayed during this period.
We appreciate your patience and understanding while our team is away. Thank you for being part of the gVectors community!
Merry Christmas and Happy Holidays! 🎄
Jul 24, 2021 4:26 pm
3 Replies
Jul 24, 2021 4:54 pm
It's a JSON data, you can decode it using json_decode() PHP function: https://www.php.net/manual/en/function.json-decode.php#example-3446
Also, as a quick solution, you can use the wpForo function which returns user field by user id:
<?php wpforo_user_field( 'city', $member['ID']); ?>
sdsdsd


