/*Generic Page*/ add_filter('display_post_states', 'victoria_custom_post_states',10,2); function victoria_custom_post_states( $states, $post ) { if ( ( 'page' == get_post_type( $post->ID ) ) && ( 'templates/template-generic.php' == get_page_template_slug( $post->ID ) ) ) { $states[] = __('Generic Page'); } return $states; }