Notifications
Clear all

Paid Addons Support Forum Only

Please note, that here we only support Paid Addons issues and questions.

gVectors Support staff works from 6am to 6pm (GMT+0)

All questions related to wpForo and wpDiscuz free plugins should be asked in the corresponding plugin support forum:

 

wpDiscuz Support Forum wpForo Support Forum

Custom field data in Members list table


Ambarish Chatterjee
Posts: 2
Customer
Topic starter
(@ambarish-chatterjee)
Member
Joined: 3 months ago

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

image
3 Replies
Tom
Posts: 3712
 Tom
Admin
(@tomson)
Support Team
Joined: 6 years ago

Hi @ambarish-chatterjee,

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

Reply
2 Replies
Ambarish Chatterjee
Customer
(@ambarish-chatterjee)
Joined: 3 months ago

Member
Posts: 2

Hey @tomson,

 

Thank you so much. This worked perfectly. I have another query, where I am struggling. How we can use the custom field data in our template?

image

Here I want to use custom field data.

Reply
Tom
 Tom
Admin
(@tomson)
Joined: 6 years ago

Support Team
Posts: 3712

Hi @ambarish-chatterjee,

I'm sorry, but we don't provide template customization support. This is all on you. If you're PHP developer, you can ask for files or functions. And you should read this documentation to see who it could be customized in update safe way:

Reply
Share:
Scroll to top