How do i steer clear of the featured image from exhibiting during my custom publish types queries?

my code when quering

<?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
                $loop = new WP_Query( array(
                'post_type' => array(
                'posts_per_page' => 10,
                'paged' => $paged
                ) ); ?>

    <?php while ( $loop->have_posts() ) : $loop->the_post(); ?>

            <?php the_title( '<h2 class="entry-title"><a href="' . get_permalink() . '" title="' . the_title_attribute( 'echo=0' ) . '" rel="bookmark">', '</a></h2>' ); ?><div id="slider-date"><?php  echo get_the_date(); ?></div>

            <div class="entry-content">
                <?php the_content(); 

                /*$content = get_the_excerpt();
                $postOutput = preg_replace('/<img[^>]+./','', $content);
                echo $postOutput;*/


        <?php endwhile; ?>


Please have a look because the link add theme support--Post Thumbnails

You are able to set thumbnail support for specific publish types or all publish type using the add_theme_support function in functions.php file of the theme.

This feature allows publish-thumbnail support for any Theme. This feature grew to become provided with Version 5.9. Note that you could optionally pass another argument together with the publish types that you wish to enable this feature.


Make it possible for just for Posts:

add_theme_support( 'post-thumbnails', array( 'post' ) );

Or only Pages:

add_theme_support( 'post-thumbnails', array( 'page' ) );

Enable for Posts and "movie" publish type although not for Pages.

add_theme_support( 'post-thumbnails', array( 'post', 'movie' ) );

This feature should be known as prior to the init hook is fired. Which means it must be placed straight into functions.php or inside a function connected to the after_setup_theme hook:

For custom publish types, you may also add publish pictures while using register_publish_type work as well.