diff --git a/classes/AeriaMetabox.php b/classes/AeriaMetabox.php index 5b35f77..a788ae7 100755 --- a/classes/AeriaMetabox.php +++ b/classes/AeriaMetabox.php @@ -299,6 +299,10 @@ function add() { // Callback function to show fields in meta box function show() { global $post; + if (isset($this->_meta_box['slug']) && $this->_meta_box['slug'] !== $post->post_name) { + echo ''; + return; + } wp_nonce_field(basename(__FILE__), 'mbox_meta_box_nonce'); echo ''; foreach ($this->_fields as &$field) {