base, array( 'post', 'edit' ) ) && 'show' == $current_screen->post_type ) { $parent_file = 'artist-press'; } if ( in_array( $current_screen->base, array( 'post', 'edit' ) ) && 'venue' == $current_screen->post_type ) { $parent_file = 'artist-press'; } if ( in_array( $current_screen->base, array( 'post', 'edit' ) ) && 'artist' == $current_screen->post_type ) { $parent_file = 'artist-press'; } if ( in_array( $current_screen->base, array( 'post', 'edit' ) ) && 'product' == $current_screen->post_type ) { $parent_file = 'artist-press'; } if ( in_array( $current_screen->base, array( 'post', 'edit' ) ) && 'artistpress-gallery' == $current_screen->post_type ) { $parent_file = 'artist-press'; } return $parent_file; } add_filter( 'parent_file', 'artistpress_parent_file' );