Hi,
I have an issue with reordering the field in the admin.
I have set this order:
-TAB 1
— field 11
— field 12
— field 13
-TAB 2
— field 21
— field 22
When I save, I have this:
– field 21
– field 22
-TAB 2
-TAB 1
— field
— field
— field
or sometimes this :
-TAB 2
— field 21
— field 22
-TAB 1
— field
— field
— field
I’ve tried to delete then create new field, I just can’t reorder them -_-
Any ideas?
—- Versions —-
ACF v5.3.1
WP v4.3.1
I’ve tried to create 2 new field at the end of the list, but after saving they are moved to the top:
I’ve tried to install ACF Pro on an other wordpress website, I have the same issue.
Does anyone had this one?
Hi @pushaune
I’ve never heard of this issue before and never encountered it.
Could you try disabling all other plugins to see if something is interfering with ACF?
Also if possible switch to a default twenty- theme 🙂
Hi!
Found it! This code was on the function.php and was messing with ACF PRO:
// Connection error
add_filter('login_errors',create_function('$a', "return null;"));
function set_post_order_in_admin( $wp_query ) {
if ( is_admin() ) {
$wp_query->set( 'orderby', 'post_status' );
$wp_query->set( 'order', 'DESC' );
}
}
add_filter('pre_get_posts', 'set_post_order_in_admin' );
I removed it and it works just fine 🙂
Ah great 🙂
I believe it was only this part that messed with ACF tho:
function set_post_order_in_admin( $wp_query ) {
if ( is_admin() ) {
$wp_query->set( 'orderby', 'post_status' );
$wp_query->set( 'order', 'DESC' );
}
}
add_filter('pre_get_posts', 'set_post_order_in_admin' );
If you want to retain the functionality that code gives you without affecting ACF you can specify which post types you want to use it for.
The topic ‘Impossible to reorder fields in ACF PRO’ is closed to new replies.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.