• Resolved manx89

    (@manx89)


    Hi,

    by your plugin I added new fields into registration form. For example “shirt_size”. How can I display it on backend admin column in “Users”?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Stiofan

    (@stiofansisland)

    Hi @manx89,

    We don’t have an option to do that just now, you would have to use hooks and custom code to do it just now but it is something i was considering adding as an option, its good to know there is demand for it, i will add it as a future improvement task.

    Thanks,

    Stiofan

    delythchandler

    (@delythchandler)

    Yes, I would also like this feature please. I am using Advanced Custom Fields and could like to include some of those registration fields to your user profile page.

    Plugin Support alexrollin

    (@alexrollin)

    Thanks @delythchandler, we will keep that in mind.

    delythchandler

    (@delythchandler)

    I have managed to add ACF fields onto the account page, if anyone needs it:

    add
    <?php acf_form_head();?>
    to the start of the page (before <html>)

    Then add the following to the account.php template

    <h3>Update your profile</h3>
    <?php $current_user = wp_get_current_user();
    $cf = get_page_by_title(‘Custom field name’, OBJECT, ‘acf-field-group’);
    $options = array(
    ‘post_id’ => ‘user_’.$current_user->ID,
    ‘field_groups’ => array($cf->ID),
    ‘form’ => true,
    ‘return’ => add_query_arg( ‘updated’, ‘true’, get_permalink() ),
    ‘html_before_fields’ => ”,
    ‘html_after_fields’ => ”,
    ‘submit_value’ => ‘Update’
    );
    acf_form( $options );
    ?>

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Add custom field to admin column’ is closed to new replies.