{"action":"created","issue":{"url":"https://api.github.com/repos/rilwis/meta-box/issues/883","repository_url":"https://api.github.com/repos/rilwis/meta-box","labels_url":"https://api.github.com/repos/rilwis/meta-box/issues/883/labels{/name}","comments_url":"https://api.github.com/repos/rilwis/meta-box/issues/883/comments","events_url":"https://api.github.com/repos/rilwis/meta-box/issues/883/events","html_url":"https://github.com/rilwis/meta-box/issues/883","id":157372322,"number":883,"title":"meta data issue","user":{"login":"atashinbar","id":19619864,"avatar_url":"https://avatars.githubusercontent.com/u/19619864?v=3","gravatar_id":"","url":"https://api.github.com/users/atashinbar","html_url":"https://github.com/atashinbar","followers_url":"https://api.github.com/users/atashinbar/followers","following_url":"https://api.github.com/users/atashinbar/following{/other_user}","gists_url":"https://api.github.com/users/atashinbar/gists{/gist_id}","starred_url":"https://api.github.com/users/atashinbar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atashinbar/subscriptions","organizations_url":"https://api.github.com/users/atashinbar/orgs","repos_url":"https://api.github.com/users/atashinbar/repos","events_url":"https://api.github.com/users/atashinbar/events{/privacy}","received_events_url":"https://api.github.com/users/atashinbar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-05-29T06:41:35Z","updated_at":"2016-06-01T07:45:35Z","closed_at":null,"body":"With your plugin, we have created some options for our pages to let user on/off header or footer but when we import WordPress own dummy into https://wpcomthemes.svn.automattic.com/demo/theme-unit-test-data.xml footer and header option stays on “off” by default and it does not load unless we click on “update” button in edit page. Although when we manually make it “on” and then click on “update” button it works. The another issue that we’d like to share is that in some pages such as buddypress “group” this settings do not work at all, header and footer stay “off”. How is possible to change default settings? Or is there other ways to get a better result by this plugin?"},"comment":{"url":"https://api.github.com/repos/rilwis/meta-box/issues/comments/222917711","html_url":"https://github.com/rilwis/meta-box/issues/883#issuecomment-222917711","issue_url":"https://api.github.com/repos/rilwis/meta-box/issues/883","id":222917711,"user":{"login":"atashinbar","id":19619864,"avatar_url":"https://avatars.githubusercontent.com/u/19619864?v=3","gravatar_id":"","url":"https://api.github.com/users/atashinbar","html_url":"https://github.com/atashinbar","followers_url":"https://api.github.com/users/atashinbar/followers","following_url":"https://api.github.com/users/atashinbar/following{/other_user}","gists_url":"https://api.github.com/users/atashinbar/gists{/gist_id}","starred_url":"https://api.github.com/users/atashinbar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atashinbar/subscriptions","organizations_url":"https://api.github.com/users/atashinbar/orgs","repos_url":"https://api.github.com/users/atashinbar/repos","events_url":"https://api.github.com/users/atashinbar/events{/privacy}","received_events_url":"https://api.github.com/users/atashinbar/received_events","type":"User","site_admin":false},"created_at":"2016-06-01T07:45:35Z","updated_at":"2016-06-01T07:45:35Z","body":"Hi there,\r\nIt is my backend code: \r\n`add_filter( 'rwmb_meta_boxes', 'test_meta_boxes' );\r\nfunction test_meta_boxes( $meta_boxes ) {\r\n\t$meta_boxes[] = array(\r\n\t\t'title'\t\t\t=> esc_attr__( 'test Page Options', 'test' ),\r\n\t\t'post_types'\t=> 'page',\r\n\t\t'fields'\t\t=> array(\t\r\n\t\t\tarray(\r\n\t\t\t\t'id'\t=> 'test_topbar_show',\r\n\t\t\t\t'name'\t=> esc_attr__( 'Show Topbar', 'test' ),\r\n\t\t\t\t'type'\t=> 'checkbox',\r\n\t\t\t\t'std'\t=> 1,\r\n\t\t\t),\r\n\t\t\tarray(\r\n\t\t\t\t'id'\t=> 'test_header_show',\r\n\t\t\t\t'name'\t=> esc_attr__( 'Show Header', 'test' ),\r\n\t\t\t\t'type'\t=> 'checkbox',\r\n\t\t\t\t'std'\t=> 1,\r\n\t\t\t),\r\n\t\t\tarray(\r\n\t\t\t\t'id'\t=> 'test_footer_show',\r\n\t\t\t\t'name'\t=> esc_attr__( 'Show Footer', 'test' ),\r\n\t\t\t\t'type'\t=> 'checkbox',\r\n\t\t\t\t'std'\t=> 1,\r\n\t\t\t),\r\n\t\t),\r\n\t);\r\n\treturn $meta_boxes;\r\n}`\r\n\r\nAnd it is footer.php code for example : \r\n`$footer_show = true;\r\nif(isset($post)){\r\n\t$footer_show = rwmb_meta( 'test_footer_show' );\r\n} \r\nif ( $footer_show || is_archive() || is_single() || is_home() ) {\r\n}`"}}
{"actor":{"display_login":"atashinbar"}}