Php ACF表单未更新用户配置文件中的自定义字段?
我正在使用高级自定义字段插件在Wordpress用户配置文件中创建一些额外的字段。我想更新前端中的那些用户字段。为此,我使用下面的代码Php ACF表单未更新用户配置文件中的自定义字段?,php,wordpress,user-profile,advanced-custom-fields,Php,Wordpress,User Profile,Advanced Custom Fields,我正在使用高级自定义字段插件在Wordpress用户配置文件中创建一些额外的字段。我想更新前端中的那些用户字段。为此,我使用下面的代码 <?php $options = array( 'post_id' => 'user_'.$current_user->ID, 'field_groups' => array(77), 'form' => true, 'return' => add_query_arg( 'updated', 'true', get_perm
<?php $options = array(
'post_id' => 'user_'.$current_user->ID,
'field_groups' => array(77),
'form' => true,
'return' => add_query_arg( 'updated', 'true', get_permalink() ),
'html_before_fields' => '',
'html_after_fields' => '',
'submit_value' => 'Update');acf_form( $options ); ?>
此代码显示表单中的所有ACF字段。但它们不会在当前登录的用户配置文件中更新。当我点击更新按钮时,所有字段都应该在当前登录的用户配置文件中更新。
有人能帮我吗。我错过了什么 你把acf_表单头放在页面顶部了吗?谢谢你@Niels现在它开始工作了。