Support Forum
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?
Hi Martin,
Can you please clarify the question or share some screenshots of it?
No, the View works as theme templates. You should use it on the frontend.
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.
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
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.
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 😉
I understand your question. We should be able to re-order the custom fields in any way we like without having to fiddle with the dates. I found myself adding a bunch of custom fields to find out that they are in a wonky order.