Viewing 8 reply threads
  • Author
    Posts
    • #4414
      Anthony
      Member

      I 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?

    • #4421
      Steve
      Keymaster

      @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.

    • #4423
      Anthony
      Member

      BRILLIANT! Looking forward to it. Thank you for constructing such an ingenious CMS solution for WordPress. Keep up the great work .

    • #4425
      Steve
      Keymaster

      So 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.

    • #4437
      Steve
      Keymaster
    • #4611
      Anthony
      Member

      Is there an ETA for full release? I like how the beta performs.

    • #4612
      Steve
      Keymaster

      why don’t you try the beta? It’s very stable.

    • #5547
      Anthony
      Member

      the beta was better. In addition, used Global Meta Box plugin to keep things consistent throughout. Worked like a charm.

    • #5554
      Steve
      Keymaster

      Love to GIANT Piklist logo!

      Closing this ticket. Thanks

Viewing 8 reply threads
  • The topic ‘Metabox Locations Not Locking’ is closed to new replies.