Custom Fields
Re-Envisioned
Support MB User Profile Duplicate fields on the backend

This topic contains 4 replies, has 2 voices, and was last updated by  Anh Tran 2 months, 1 week ago.

  • Creator
    Topic
  • #13722
    Resolved
    Infolu
    Participant

    Hello friends, I am creating a page on the front end for user data to be updated, I know that to show default fields I have to register a new rwmb_meta_boxes while keeping the ids of the names field biography, but in doing so I have a duplicate box in the back -end, and this is a problem, because having fields with the same id when updating a field for veses in the back end does not save by having a second field with the same id unchanged, or need to find a way to display fields user patterns only on the front end. Any idea for that?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Author
    Replies
  • #13729

    Infolu
    Participant

    Staff solved this using get_current_screen() the before $metabox []

    Thank you

    #13730

    Infolu
    Participant

    The only thing I could not bring forward is the user-language user-language-wrap select any idea for that?

    #13731

    Infolu
    Participant

    Another field I need to bring forward is the Public Display Name select. and also the Sessions button

    #13744

    Anh Tran
    Keymaster

    Hi,

    Good trick on get_current_screen()!

    Regarding the user language, the field ID (for user meta) is locale. However, the list of options you need to make by yourself.

    The display name has the field ID display_name.

    The “Sessions” button is just a simple button and you can do that with button field. However, to make sure it works like WordPress, you have to do the code to log out from everywhere by yourself.

Viewing 4 replies - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.