Support

Account

Home Forums Bug Reports Position : High (after title) not working

Solving

Position : High (after title) not working

    • gmsb

    • November 28, 2014 at 1:10 am

    Latest version of WordPress (4.0.1) and ACF (5.1.3).

    When I set a custom field group’s position to High (after title) the custom fields show up underneath the TinyMCE WYSIWYG editor.

  • I seem to be having the same issue. Did you find any resolution?

    • gmsb

    • March 23, 2015 at 10:12 pm

    I found the serialized database entry for the ACF block and tweaked it to ‘reset’ it. Sorry I can’t give you any specifics, this was a while back now.

    • ethene

    • July 1, 2015 at 11:08 am

    Hi i also encountered same issue. May i know how do you actually fix this?

    • gmsb

    • July 1, 2015 at 5:06 pm

    Other than editing the database entry as mentioned above, I don’t believe there is currently another way.

    • Rasso

    • August 13, 2015 at 7:37 pm

    Still does not work in mid 2015.

    • Rasso

    • August 13, 2015 at 7:46 pm

    Actually, just worked it out. Put this in your functions.php file:

    
    function prefix_reset_metabox_positions(){
      delete_user_meta( 1, 'meta-box-order_post' );
      delete_user_meta( 1, 'meta-box-order_page' );
      delete_user_meta( 1, 'meta-box-order_custom_post_type' );
    }
    add_action( 'admin_init', 'prefix_reset_metabox_positions' );
    
  • Note, if the above isn’t working for you, you may have a different user ID. Replace the number 1 in the code above with wp_get_current_user()->ID

    • tjkelly

    • April 24, 2018 at 2:11 pm

    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' );
    
  • This absolutely works for me. Thanks.

    Amazing that it’s been so long.

    I may look for a plugin dedicated to customising placement of all post metaboxes actually.

    Update: I subsequently needed to remove the code from functions.php if I wanted to also respect that custom order with which I had dragged other boxes around. The code keeps resetting them, too, not just the ACF field group.

  • thanks!

  • Many thanks to @rasso and @tjkelly for their helpful solution – this worked for me!

    NOTE to @iamrobertandrews and anyone else who finds this thread: THIS function as shown above (with your correct user ID and custom post type if you use CPTs) is meant to be a one-time use function – you put it in your functions.php (or a custom plugin if you have one) and then refresh any back-end admin page for it to run, then you can either remove it or comment it out until you need it again.

Viewing 12 posts - 1 through 12 (of 12 total)

You must be logged in to reply to this topic.

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 Cookie Policy. If you continue to use this site, you consent to our use of cookies.