Skip Navigation

[Resolved] How can i sort custom field group insde custom post type?

This support ticket is created 5 years, 1 month ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

Tagged: 

This topic contains 3 replies, has 2 voices.

Last updated by Shane 5 years, 1 month ago.

Assisted by: Shane.

Author
Posts
#1362679

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.

#1362767

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Klaus,

Thank you for getting in touch.

Are these fields in the same field group or are they different field groups?

If they are in different field groups they will be displayed in the order they were created.

If not then they you can re-arrange them in the custom field group edit page.

Could you provide a little more clarity so that I can understand how the fields were made ?

Thanks,
Shane

#1362821

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.

Best regrds
Klaus

#1362939

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Klaus,

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.

Thanks,
Shane