// Shortcode - Displays list of Posts without Featured Images
add_shortcode('qc-post-featured-images', 'qc_featured_images');
function qc_featured_images($atts, $content = null)
{
$args = array(
'nopaging ' => true,
'order' => 'ASC',
'orderby' => 'title',
'posts_per_page' => 25000,
);
// The Query
$the_query = new WP_Query($args);
global $post;
// The Loop
if ($the_query->have_posts()) {
while ($the_query->have_posts()) {
$the_query->the_post();
$title = esc_attr__(get_the_title());
$ShortTitle = str_replace($category, "", $title);
if (!has_post_thumbnail($post->ID)) {
echo '<li>';
echo '<a class="name" title="' . $title . '" href="' . get_permalink() . '" >' . $ShortTitle . '</a>';
echo '</li>';
}
}
}
/* Restore original Post Data */
wp_reset_postdata();
}