Custom Fields
Re-Envisioned
Support General Custom Fields Order for Users

  • Creator
    Topic
  • #30743
    Resolved Martin
    Participant

    I have 2 related questions.

    Firstly, where I have a number of Custom Field forms set to show for Users is there a way to set the order with which they appear? With Views I can set the priority order but I can't see a way to do this for User profiles in the Dashboard and I just get them in whatever order they happen to be in - consistent but not the order I'd like.

    On a related subject - is it possible to create Views that can be used in the Admin Dashboard?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Author
    Replies
  • #30759
    Long Nguyen
    Moderator

    Hi Martin,

    1. Can you please clarify the question or share some screenshots of it?

    2. No, the View works as theme templates. You should use it on the frontend.

    #30762
    Martin
    Participant

    Hi Long,

    So here's an example. In the User admin screen in the WP Dashboard you get the various WP generated fields appearing first. Then you get any connections created with MB Relationships. After this you get any Custom Field Groups created that are set to appear for Users - these appear in reverse order of when they were created by the looks of it.

    I'd like to be able to change these orders so that I can place the most commonly accessed Custom Field Groups at the top and have the less commonly accessed ones lower down.

    In Views there is an Order setting which handles the order priority. I was looking for something similar to this perhaps. Or if there's some code snippet I can pop in to choose the order if there's no priority in there. It seems that the order is set by creation date now which makes me think there's something behind the scenes somewhere that handles it.

    #30774
    Long Nguyen
    Moderator

    Hi Martin,

    I think it is a WordPress-related question, Meta Box does not support re-order the default fields of users in the backend. This topic might help you to re-order those fields by coding https://wordpress.stackexchange.com/questions/60420/add-and-remove-fields-in-profile-page

    If you want to re-order default fields on the frontend, please follow this documentation https://docs.metabox.io/extensions/mb-user-profile/#edit-default-fields

    #30777
    Martin
    Participant

    OK. Thanks Long. It wasn't the individual fields so much as the order that each of the whole field groups appeared in but it sounds like there's no mechanism for it so I'll drop that line of thought and create a frontend view for admin purposes instead.

    #30778
    Martin
    Participant

    In fact I just solved my immediate ordering issue. I simply changed the publish dates of the carious field groups and that changes the order they appear in. A bit of a 'hack' I suppose but it does what I want for now 😉

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.