Make WordPress Core

Opened 4 years ago

Last modified 4 years ago

#52950 new defect (bug)

add_meta_box issue in wordpress 5.7

Reported by: daniyalkrl's profile daniyalkrl Owned by:
Milestone: Awaiting Review Priority: normal
Severity: major Version: 5.7
Component: Posts, Post Types Keywords:
Focuses: Cc:

Description

I recently moved to the new WordPress version 5.7 and now I am facing an issue in the add_meta_box function in function.php. The issue I am facing is the custom post type ID which I added in the add_meta_box function is conflicts with my custom post slug. Whenever I add a new post or open an existing post it shows a pre-generated slug from that custom post type without saving. Please see my code below.

<?php
add_meta_box( 
        'cpt_1322', 
        'Productions', 
        'production_meta_post_callback', 
        'cpt_1322', 
        'side', 
        'default' 
    );

Change History (1)

#1 @ravipatel
4 years ago

@daniyalkrl
use this link for support.
https://wordpress.org/support/

I have test your code work fine for me. one time test in fresh wp setup.

Note: See TracTickets for help on using tickets.