Tagged: columns, default views, location, metabox
- This topic has 8 replies, 2 voices, and was last updated 6 years ago by
Steve.
-
AuthorPosts
-
-
October 3, 2015 at 3:20 pm #4414
AnthonyMemberI have been successful in creating a simple custom post type (sponsor) and a few metaboxes to go with them. However, whenever I refresh the page, the locations I set for the metaboxes revert back to a position where everything except the “Publish” metabox is on the right column.
Functions.php call
/* ██████╗ ██╗██╗ ██╗██╗ ██╗███████╗████████╗ ██╔══██╗██║██║ ██╔╝██║ ██║██╔════╝╚══██╔══╝ ██████╔╝██║█████╔╝ ██║ ██║███████╗ ██║ ██╔═══╝ ██║██╔═██╗ ██║ ██║╚════██║ ██║ ██║ ██║██║ ██╗███████╗██║███████║ ██║ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝╚══════╝ ╚═╝ Used for custom post types only. Otherwise within default folders */ add_filter('piklist_post_types', 'sponsor_post_type'); function sponsor_post_type($post_types) { $post_types['sponsor'] = array( 'labels' => piklist('post_type_labels', 'Sponsor') ,'title' => __('Enter Sponsor Name') ,'public' => true ,'rewrite' => array( 'slug' => 'sponsor' ) ,'supports' => array( 'author' ,'revisions' ,'title' ,'editor' ,'excerpt' ) ,'hide_meta_box' => array( 'revisions' ,'comments' ,'commentstatus' ) ); return $post_types; }Metaboxes
/* Title: Social Specs Post Type: sponsor Locked: true Collapse: false */ piklist('field', array( // FACEBOOK 'type' => 'text' ,'field' => 'sponsor_fb' ,'label' => '<i class="fa fa-facebook-official"></i>Facebook Page ID' ,'description' => 'Click <a target="_blank" href="http://findmyfbid.com">here</a> to recover ID' ,'value' => 'Enter numbers only' ,'help' => 'Click on link to recover ID.' ,'attributes' => array( 'class' => 'text' ) ));In addition, I tried using “Global Meta Box Order” to harmonize my views. It was successful in doing it on my regular posts and pages but not my sponsor CPT.
Any thoughts as to why?
-
October 6, 2015 at 4:02 pm #4421
SteveKeymaster@anthonyabraira– Welcome to the Piklist community!
So sorry for the late reply. This is a bug in the current version of Piklist. It is fixed in the next version 0.9.9 which will be released shortly.
-
October 6, 2015 at 4:04 pm #4423
AnthonyMemberBRILLIANT! Looking forward to it. Thank you for constructing such an ingenious CMS solution for WordPress. Keep up the great work .
-
October 6, 2015 at 4:08 pm #4425
SteveKeymasterSo happy you love Piklist!
Would you mind telling the rest of the world by leaving Piklist a 5 Star Review on WordPress.org… it really helps the project.
-
October 7, 2015 at 10:07 am #4437
SteveKeymaster -
October 16, 2015 at 6:42 pm #4611
AnthonyMemberIs there an ETA for full release? I like how the beta performs.
-
October 16, 2015 at 8:03 pm #4612
SteveKeymasterwhy don’t you try the beta? It’s very stable.
-
January 10, 2016 at 7:08 pm #5547
AnthonyMemberthe beta was better. In addition, used Global Meta Box plugin to keep things consistent throughout. Worked like a charm.
-
January 11, 2016 at 5:06 pm #5554
SteveKeymasterLove to GIANT Piklist logo!
Closing this ticket. Thanks
-
-
AuthorPosts
- The topic ‘Metabox Locations Not Locking’ is closed to new replies.