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

Question regarding wpforo_user_field('field')  

Posts: 2
New Member
Joined: 2 years ago

I'm messaging you on behalf of a client of mine who has purchased the Custom User Fields add-on.  I am trying to  integrate some of the custom fields that we have added to their site - and all I have found is this php code:

<?php wpforo_user_field('field') ?>

The problem is that it displays the field info for the person visiting the site, I need a way to display the info for the member in the member loop..

<?php wpforo_user_field( $userId, 'field' ) ?>

I have tried the code above (after reading another post on this forum) with no luck, does that function have such capability? If not, can you point me in the right direction?




2 Replies
Posts: 4533
Support Team
Joined: 3 years ago

Hi @irish305,

You've changed the parameters position in the code, the first one should be the 'field', not the 'userId'

<?php wpforo_user_field( 'field', $userId ) ?>

Here you can also find a lot of useful information:

Posts: 2
New Member
Joined: 2 years ago

just so you know the correct way to enter the user field in other wpforo template files is:


<?php wpforo_user_field( 'field_name', $member['ID'] ); ?>
Scroll to top