Home › Forums › ACF PRO › Impossible to reorder fields in ACF PRO › Reply To: Impossible to reorder fields in ACF PRO
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 🙂
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.