• Hi,
    Was wrestling with an issue earlier today and though I would share.
    The meata/post box was not showing on my post screens where you are able to associate a post as a match report.
    The error I was getting was:

    PHP Notice: convert_to_screen(), add_meta_box() was called incorrectly. Likely direct inclusion of wp-admin/includes/template.php in order to use add_meta_box(). This is very wrong. Hook the add_meta_box() call into the add_meta_boxes action instead. Please see Debugging in WordPress for more information.

    The fix was to open leaguemanager/admin/admin.php and add the following at line 21:

    if( ! class_exists(‘WP_Screen’) ) {
    require_once( ABSPATH . ‘wp-admin/includes/screen.php’ );
    }

    Hope this helps someone.

    Conor

    https://www.ads-software.com/plugins/leaguemanager/

  • The topic ‘Fixed: Postbox Widget Not Showing’ is closed to new replies.