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:
Question regarding wpforo_user_field('field')
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?
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: https://wpforo.com/docs/root/addons/wpforo-user-custom-fields/
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'] ); ?>