Hi Team,
I create for a Custom Post Type (Object) three different custom field group.
For example:
1. Address
2. Opening Hours (repeatable field group)
3. Location images
If the user now wants to create a new object, the field groups are displayed in reverse order.
3. Location images
2. Opening Hours
1. Address
How can i fix this?
Best regards Klaus
P.S.: I know that I can drag and drop the groups to their position. But that's not a solution for an inexperienced user.
Hi Shane, thanks for your reply.
Yes these are three different field groups with different custom fields.
All three groups are assigned to the same custom post type.
At first the custom field group was displayed in alphabetic order (decending) in the post type.
In the next step i gave them a number 1. 2. 3.
The result was a numeric order also decending. (3. 2. 1.)
I can not put the fields in one custom group because i need some of these groups in another post type.
There isn't a way to order them if they are in separate post groups. They are ordered in the way they are created.
This means that the newer groups are displayed first.
"I can not put the fields in one custom group because i need some of these groups in another post type."
You actually can make an exception for this single post type by re-using the fields. You can create a post group just for this CPT and then re-add the existing fields to that Post group and then you can order the fields how you want them.