Skip to:
Content
Pages
Categories
Search
Top
Bottom

Adding fields to metadata – getting it updated


  • Robin W
    Moderator

    @robin-w

    I have added a new input line to the form-user-edit.php I plan to add more and have these either via functions.php or a plugin when I have got it working, but for the moment am changing the .php itself.

    So for now I have put in new line, copying the syntax of another one :`<label for=”town”><?php _e( 'Town', 'bbpress' ); ?></label>
    <input type=”text” name=”town” id=”town” value=”<?php echo esc_attr( bbp_get_displayed_user_field( 'town' ) ); ?>” class=”regular-text” tabindex=”<?php bbp_tab_index(); ?>” />`

    This works fine, except how do I get this to save the info? It lets me change it, but doesn’t let me save it.

    However if I set a row in phpmyadmin, then this code displays it, but again doesn’t not save a change.

    What bit of logic am I missing?

  • You must be logged in to reply to this topic.
Skip to toolbar