Make WordPress Core

Opened 3 years ago

Last modified 3 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:


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.


Change History (1)

#1 @ravipatel
3 years ago

use this link for 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.