'Select a post/page', ); $bizmarkPostsPagesArgs = array( // Change these category SLUGS to suit your use. 'ignore_sticky_posts' => 1, 'post_type' => array('post', 'page'), 'orderby' => 'date', 'posts_per_page' => -1, 'post_status' => 'publish', ); $bizmarkPostsPagesQuery = new WP_Query( $bizmarkPostsPagesArgs ); if ( $bizmarkPostsPagesQuery->have_posts() ) : while ( $bizmarkPostsPagesQuery->have_posts() ) : $bizmarkPostsPagesQuery->the_post(); $bizmarkPostsPagesId = get_the_ID(); if(get_the_title() != ''){ $bizmarkPostsPagesTitle = get_the_title(); }else{ $bizmarkPostsPagesTitle = get_the_ID(); } $bizmarkPostsPagesArray[$bizmarkPostsPagesId] = $bizmarkPostsPagesTitle; endwhile; wp_reset_postdata(); endif; $bizmarkYesNo = array( 'select' => __('Select', 'bizmark'), 'yes' => __('Yes', 'bizmark'), 'no' => __('No', 'bizmark'), );