Missing argument 4 for WPUF_Render_Form::render_items()

This topic contains 1 reply and 2 voices, and was last updated by Tareq Hasan 10 years, 12 months ago
Viewing 1 Posts - 1 through 1 (of 1 total)
Author Posts
April 29, 2013 at 8:51 am 2962
Tareq Hasan Hi, in Wordpress admin area -> profile settings, I see this bug:
Warning: Missing argument 4 for WPUF_Render_Form::render_items(), called in /home/***.ru/www/wp-content/plugins/wp-user-frontend-pro/class/admin-posting-profile.php on line 70 and defined in /home/artnic.ru/www/wp-content/plugins/wp-user-frontend-pro/class/render-form.php on line 326
What does this mean? And, how I can get custom profile user fields inside theme template files?
April 29, 2013 at 9:46 am 2972
Tareq Hasan Tareq Hasan

Seems like a small issue. You can fix it by opening /class/admin-posting-profile.php on line 70, replace with this code:

$this->render_items( $custom_fields, $userdata->ID, 'user', $form_id, get_post_meta( $form_id, 'wpuf_form', true ) );

You can display user profile custom field by this below snippet, you need to give the right user ID and meta key name:
[php]echo get_user_meta( $user_id, ‘meta_key_name’, true );[/php]

Viewing 1 Posts - 1 through 1 (of 1 total)