• Resolved wpforever18

    (@wpforever18)


    Hello! By default WordPress, the “Meta Box Publish” in post editing is ahead of the rest. I googled and didn’t find a function to set the position / priority of this Meta Box so that it is at the end, after all the others. If anyone has and can help. I use CTP. Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Assuming “CTP” means the Custom Post Type UI plugin, I recommend asking at https://wordpress.org/support/plugin/custom-post-type-ui/#new-post so the plugin’s developers and support community can help you with this.

    Thread Starter wpforever18

    (@wpforever18)

    I created the custom posts myself. Just commented because depending on the code you need to modify, since I do not use the post. 🙂

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Try changing the priority on add_action to 11 or 9.

    Thread Starter wpforever18

    (@wpforever18)

    Success. Basically just remove and add back to metabox.


    add_action( 'do_meta_boxes', 'custom_default_position_publish_box' );
    function custom_default_position_publish_box () {
    $post_type = 'cpt';
    remove_meta_box( 'submitdiv', $post_type, 'side' );
    add_meta_box( 'submitdiv', __( 'Publish' ), 'post_submit_meta_box', $post_type, 'side', 'low' );
    }

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Change Meta Box Publish Position’ is closed to new replies.