{"action":"created","issue":{"url":"https://api.github.com/repos/CMB2/CMB2/issues/1196","repository_url":"https://api.github.com/repos/CMB2/CMB2","labels_url":"https://api.github.com/repos/CMB2/CMB2/issues/1196/labels{/name}","comments_url":"https://api.github.com/repos/CMB2/CMB2/issues/1196/comments","events_url":"https://api.github.com/repos/CMB2/CMB2/issues/1196/events","html_url":"https://github.com/CMB2/CMB2/issues/1196","id":387415559,"node_id":"MDU6SXNzdWUzODc0MTU1NTk=","number":1196,"title":"Not Working with Posts Page (Blog Page)","user":{"login":"stylethemes","id":26869625,"node_id":"MDQ6VXNlcjI2ODY5NjI1","avatar_url":"https://avatars0.githubusercontent.com/u/26869625?v=4","gravatar_id":"","url":"https://api.github.com/users/stylethemes","html_url":"https://github.com/stylethemes","followers_url":"https://api.github.com/users/stylethemes/followers","following_url":"https://api.github.com/users/stylethemes/following{/other_user}","gists_url":"https://api.github.com/users/stylethemes/gists{/gist_id}","starred_url":"https://api.github.com/users/stylethemes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stylethemes/subscriptions","organizations_url":"https://api.github.com/users/stylethemes/orgs","repos_url":"https://api.github.com/users/stylethemes/repos","events_url":"https://api.github.com/users/stylethemes/events{/privacy}","received_events_url":"https://api.github.com/users/stylethemes/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-12-04T18:12:36Z","updated_at":"2018-12-05T07:56:56Z","closed_at":null,"author_association":"NONE","body":"### Expected Behavior:\r\n\r\nTo Work Normally with my latest posts page\r\n\r\n### Actual Behavior:\r\n\r\nso I have cmb2 on my wp theme everything is working fine except for the blog page when a specify a page as the latest posts page the fields still show up but if I change the settings nothing happens I'm facing the problem only if a page is set as the latest posts page but for other pages everything works fine\r\n\r\n### CMB2 Field Registration Code:\r\n\r\n```php\r\nadd_filter( 'cmb2_meta_boxes', 'pixe_metaboxes' );\r\n/**\r\n * Define the metabox and field configurations.\r\n *\r\n * @param  array $meta_boxes\r\n *\r\n * @return array\r\n */\r\nfunction pixe_metaboxes( array $meta_boxes ) {\r\n\r\n\t// Start with an underscore to hide fields from custom fields list\r\n\t$prefix = 'pixe_';\r\n\r\n\t/**\r\n\t * Sample metabox to demonstrate each field type included\r\n\t */\r\n\t$meta_boxes['page_metabox'] = array(\r\n\t\t'id'           => 'page_metabox',\r\n\t\t'title'        => __( 'Page Settings', 'nanum' ),\r\n\t\t'object_types'  => array( 'page' ), // Post type\r\n\t\t'context'      => 'normal',\r\n\t\t'priority'     => 'high',\r\n\t\t'show_names'   => true, // Show field names on the left\r\n\t\t// 'cmb_styles' => false, // false to disable the CMB stylesheet\r\n\t\t// 'closed'     => true, // true to keep the metabox closed by default\r\n\t\t'fields'       => array(\r\n\t\t\tarray(\r\n\t\t\t\t'name'    => __( 'Section Title', 'nanum' ),\r\n\t\t\t\t'desc'    => __( 'Show / Hide The Section Title', 'nanum' ),\r\n\t\t\t\t'id'      => $prefix . 'section_title',\r\n\t\t\t\t'type'    => 'select',\r\n\t\t\t\t'options' => array(\r\n\t\t\t\t\t'default' => __( 'Default', 'nanum' ),\r\n\t\t\t\t\t'enable'  => __( 'Show', 'nanum' ),\r\n\t\t\t\t\t'disable' => __( 'Hide', 'nanum' ),\r\n\t\t\t\t),\r\n\t\t\t),\r\n\t\t\tarray(\r\n\t\t\t\t'name' => __( 'Section Title Background', 'nanum' ),\r\n\t\t\t\t'desc' => __( 'Upload an image or enter a URL for Section Title', 'nanum' ),\r\n\t\t\t\t'id'   => $prefix . 'section_title_img',\r\n\t\t\t\t'type' => 'file',\r\n\t\t\t),\r\n\t\t\tarray(\r\n\t\t\t\t'name' => 'Breadcrumbs',\r\n\t\t\t\t'desc' => 'show / Hide The the Breadcrumbs on this page',\r\n\t\t\t\t'id'   => $prefix . 'breadcrumbs_show',\r\n\t\t\t\t'type'    => 'select',\r\n\t\t\t\t'options' => array(\r\n\t\t\t\t\t'default' => __( 'Default', 'nanum' ),\r\n\t\t\t\t\t'enable'  => __( 'Show', 'nanum' ),\r\n\t\t\t\t\t'disable' => __( 'Hide', 'nanum' ),\r\n\t\t\t\t),\r\n\t\t\t),\r\n\t\t\tarray(\r\n\t\t\t\t'name'    => __( 'Page Layout', 'nanum' ),\r\n\t\t\t\t'desc'    => __( 'Choose a layout you want', 'nanum' ),\r\n\t\t\t\t'id'      => $prefix . 'page_layout',\r\n\t\t\t\t'type'    => 'select',\r\n\t\t\t\t'options' => array(\r\n\t\t\t\t\t'default' => __( 'Default', 'nanum' ),\r\n\t\t\t\t\t'boxed' => __( 'boxed', 'nanum' ),\r\n\t\t\t\t\t'wide' => __( 'wide', 'nanum' ),\r\n\t\t\t\t),\r\n\t\t\t),\r\n\r\n\t\t),\r\n\t);\r\n\t$meta_boxes['page_layout_metabox'] = array(\r\n\t\t'id'           => 'default_page_layout_metabox',\r\n\t\t'title'        => __( 'Sidebar on Default template Pages', 'nanum' ),\r\n\t\t'object_types' => array( 'page' ), // post type\r\n\t\t'context'      => 'side',\r\n\t\t'priority'     => 'low',\r\n\t\t'show_names'   => true, // Show field names on the left\r\n\t\t// 'cmb_styles' => false, // false to disable the CMB stylesheet\r\n\t\t// 'closed'     => true, // true to keep the metabox closed by default\r\n\t\t'fields'       => array(\r\n\t\t\tarray(\r\n\t\t\t\t'name'    => __( 'Sidebar Option', 'nanum' ),\r\n\t\t\t\t'id'      => $prefix . 'default_page_layout',\r\n\t\t\t\t'type'    => 'radio',\r\n\t\t\t\t'options' => array(\r\n\t\t\t\t\t'full' => __( 'Fullwidth', 'nanum' ),\r\n\t\t\t\t\t'left' => __( 'Left', 'nanum' ),\r\n\t\t\t\t\t'right' => __( 'Right', 'nanum' ),\r\n\t\t\t\t),\r\n\t\t\t\t'default' => 'full',\r\n\t\t\t),\r\n\t\t),\r\n\t);\r\n\treturn $meta_boxes;\r\n}\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/CMB2/CMB2/issues/comments/444392630","html_url":"https://github.com/CMB2/CMB2/issues/1196#issuecomment-444392630","issue_url":"https://api.github.com/repos/CMB2/CMB2/issues/1196","id":444392630,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NDM5MjYzMA==","user":{"login":"stylethemes","id":26869625,"node_id":"MDQ6VXNlcjI2ODY5NjI1","avatar_url":"https://avatars0.githubusercontent.com/u/26869625?v=4","gravatar_id":"","url":"https://api.github.com/users/stylethemes","html_url":"https://github.com/stylethemes","followers_url":"https://api.github.com/users/stylethemes/followers","following_url":"https://api.github.com/users/stylethemes/following{/other_user}","gists_url":"https://api.github.com/users/stylethemes/gists{/gist_id}","starred_url":"https://api.github.com/users/stylethemes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stylethemes/subscriptions","organizations_url":"https://api.github.com/users/stylethemes/orgs","repos_url":"https://api.github.com/users/stylethemes/repos","events_url":"https://api.github.com/users/stylethemes/events{/privacy}","received_events_url":"https://api.github.com/users/stylethemes/received_events","type":"User","site_admin":false},"created_at":"2018-12-05T07:56:56Z","updated_at":"2018-12-05T07:56:56Z","author_association":"NONE","body":"Yeah That's it so everything is working works fine for you? cuz I'm still facing the same issue \r\nhow can i test if cmb2 is saving the meta to the appropriate post in the meta table.\r\n\r\n"}}
{"actor":{"display_login":"stylethemes"}}