Why draft post show on my home page
<p>Unpublished (draft) blog posts are appearing on the homepage when a category is selected But I don't want to show it on my home page.Here is my WP Query</p>

<pre><code> &lt;div class="wm_container wm_row wm_blog_listing"&gt;
        &lt;?php
        $wm_home_blog_args = array(
            'post_type' =&gt; 'post',
            'posts_per_page' =&gt; 4,
        );
        $wm_home_blog_qry = new WP_Query($wm_home_blog_args);
        if ($wm_home_blog_qry-&gt;have_posts()) {
            while ($wm_home_blog_qry-&gt;have_posts()) {
                $wm_home_blog_qry-&gt;the_post();
                $wm_categories = get_the_category($post-&gt;ID);
                $wm_home_term_ID = $wm_categories[0]-&gt;term_id;
                $wm_home_blog_bg = get_term_meta($wm_home_term_ID, 'wm_term_color', true);
                ?&gt;
                &lt;article class="wm_col wm_col_3 wm_blog_item"
                         style="background-color: &lt;?php echo $wm_home_blog_bg; ?&gt;"&gt;
                    &lt;?php
                    if (has_post_thumbnail()) {
                        ?&gt;
                        &lt;a class="wm_post_thumbnail_wrapper" href="&lt;?php the_permalink() ?&gt;"&gt;
                            &lt;?php
                            the_post_thumbnail('wm_recent_issue_cat');
                            ?&gt;
                            &lt;span class="wm_image_overlay"&gt;Preview&lt;/span&gt;
                        &lt;/a&gt;
                        &lt;?php
                    } else {
                        ?&gt;
                        &lt;a class="wm_post_thumbnail_wrapper" href="&lt;?php the_permalink() ?&gt;"&gt;
                            &lt;img src="http://placehold.it/255x135?text=No+Image"&gt;
                            &lt;span class="wm_image_overlay"&gt;Preview&lt;/span&gt;
                        &lt;/a&gt;
                        &lt;?php
                    }
                    ?&gt;
</code></pre>

<p></p>