Home › Forums › Bug Reports › Position : High (after title) not working › Reply To: Position : High (after title) not working
Hey @rasso et al., I know this is several years old now, but I just had this problem, and this thread helped me solve it.
But.
There was one thing missing that I had to learn the hard way.
meta-box-order_custom_post_type
…should be…
meta-box-order_[YOUR custom_post_type SLUG HERE]
So, in my case…
meta-box-order_communities
When we add in @tdmalone’s helpful addition, the full code becomes…
function prefix_reset_metabox_positions(){
delete_user_meta( wp_get_current_user()->ID, 'meta-box-order_post' );
delete_user_meta( wp_get_current_user()->ID, 'meta-box-order_page' );
delete_user_meta( wp_get_current_user()->ID, 'meta-box-order_YOUR_CPT_SLUG' );
}
add_action( 'admin_init', 'prefix_reset_metabox_positions' );
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.