Php 如何在用户配置文件页面中显示用户额外文件?

Php 如何在用户配置文件页面中显示用户额外文件?,php,wordpress,Php,Wordpress,我使用的是免费版本的插件,还有一个插件,我在我的网站上添加了一些额外的字段,我想在前端用户配置文件页面上显示这些额外的字段,是否可以在word press中显示?有人能帮我一下吗?我是word press的新手。您可能想尝试获得制造商的支持: 这是一个好主意。您可能想尝试获得制造商的支持: function modify_contact_methods($profile_fields) { // Add new fields $profile_fields['twitter'] =

我使用的是免费版本的插件,还有一个插件,我在我的网站上添加了一些额外的字段,我想在前端用户配置文件页面上显示这些额外的字段,是否可以在word press中显示?有人能帮我一下吗?我是word press的新手。

您可能想尝试获得制造商的支持:


这是一个好主意。

您可能想尝试获得制造商的支持:
function modify_contact_methods($profile_fields) {

  // Add new fields
  $profile_fields['twitter'] = 'Twitter URL';
  $profile_fields['facebook'] = 'Facebook URL';
  $profile_fields['gplus'] = 'Google+ URL';
  $profile_fields['linkedin'] = 'LinkedIn URL';


  //remove old fields
  unset($profile_fields['google_profile']);
  unset($profile_fields['user_tw']);
  unset($profile_fields['user_fb']);
  return $profile_fields;
}
add_filter('user_contactmethods', 'modify_contact_methods');
// Adding and removing the extra fileds
add_action( 'show_user_profile', 'my_show_extra_profile_fields' );
add_action( 'edit_user_profile', 'my_show_extra_profile_fields' );

这是个好主意

function modify_contact_methods($profile_fields) {

  // Add new fields
  $profile_fields['twitter'] = 'Twitter URL';
  $profile_fields['facebook'] = 'Facebook URL';
  $profile_fields['gplus'] = 'Google+ URL';
  $profile_fields['linkedin'] = 'LinkedIn URL';


  //remove old fields
  unset($profile_fields['google_profile']);
  unset($profile_fields['user_tw']);
  unset($profile_fields['user_fb']);
  return $profile_fields;
}
add_filter('user_contactmethods', 'modify_contact_methods');
// Adding and removing the extra fileds
add_action( 'show_user_profile', 'my_show_extra_profile_fields' );
add_action( 'edit_user_profile', 'my_show_extra_profile_fields' );
我在functions.php中添加了这些行,它将在usermeta表中添加额外的字段。然后我在profile builder插件中修改了代码


我在functions.php中添加了这些行,它将在usermeta表中添加额外的字段。然后我在profile builder插件中修改了代码。

我也问了同样的问题,但没有回答。这对你没有帮助,巴德!很抱歉您有team viewer或skype吗?所以我可以看到控制面板,也许可以帮忙?我也问过同样的问题,但没有回答。巴德,我帮不了你!很抱歉您有team viewer或skype吗?因此,我可以查看控制面板并提供帮助?查找用于显示用户的前端模板,手动查询额外用户数据/自定义字段查找用于显示用户的前端模板,手动查询额外用户数据/自定义字段