Forum Replies Created
-
AuthorPosts
-
September 13, 2016 at 4:05 pm in reply to: How position Theme SEO Settings below custom meta boxes on entry screen? #193119rgentileMember
I recreated the plugin file and the metaboxes are now displaying in the order I need them to appear. I am not sure why this resolved the problem but it did so perhaps I made a noob error or fat fingered something.
Thanks.
September 13, 2016 at 8:47 am in reply to: How position Theme SEO Settings below custom meta boxes on entry screen? #193086rgentileMemberThank you for your time and reply Brad.
I am using CMB2 to create the metaboxes and the priority there is set to 'high':
add_action( 'cmb2_admin_init', 'cmb2_locations_metaboxes' ); function cmb2_locations_metaboxes() { $prefix = '_bzka_'; $cmb = new_cmb2_box( array( 'id' => 'location_metabox', 'title' => __( 'Location Information', 'cmb2' ), 'object_types' => array( 'bzka_locations' ), // Post type 'context' => 'normal', 'priority' => 'high', 'show_names' => true, // Show field names on the left 'cmb_styles' => false, // false to disable the CMB stylesheet ) ); }
I tried changing the priority of my add_action but that had no effect.
add_action( 'cmb2_admin_init', 'cmb2_locations_metaboxes', 9 );
add_action( 'cmb2_admin_init', 'cmb2_locations_metaboxes', 25 );So I then tried adding the code from http://www.billerickson.net/code/move-genesis-metaboxes/
It moves the Theme SEO Settings metabox down on the entry page for a Page but not for my custom post type.
I am creating my custom post type and custom metaboxes in a plugin added to the mu-plugins directory. However, I also tried deleting that plugin and moving the code to my functions.php but nothing changed.
So I am guessing the issue is related to my custom post type but I am not really sure how to continue troubleshooting.
Do you have any suggestions on where to focus my troubleshooting/learning?
Thanks again for your time,
robertg
-
AuthorPosts