Aşağıdaki kodlar ile anasayfaya post çekiyorum. Sitem wordpress. Yapmak istediğim şey anasayfadaki postları kategoriye özel yapmak. Mesela belirli 2 kategoriden 4'er post çekmek. Nasıl yaparım?

<?php global $breaknews; ?>

<article <?php post_class('post'); ?>>
    <header class="post-header <?php if(!has_post_thumbnail()) : ?>no-image<?php endif; ?>">
        <?php if(has_post_thumbnail()) : ?>
            <a class="post-img img-light" href="<?php echo esc_url( get_permalink() ); ?>">
                <?php the_post_thumbnail('breaknews-misc-thumb'); ?>
            </a>
        <?php endif; ?>
        <?php if($breaknews['bn-post-meta-cat'] && $breaknews['bn-cat-style'] === 'on') : ?>
        <div class="post-cat"><?php the_category(' '); ?></div>
        <?php endif; ?>
        <?php if( is_sticky() ) : ?>
            <div class="sticky-post fa fa-thumb-tack"></div>
        <?php endif; ?>
    </header>
    <?php the_title( '<h2 class="post-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h2>' ); ?>
    <?php if($breaknews['bn-post-meta-cat'] && $breaknews['bn-cat-style'] === 'under') : ?>
        <div class="post-cat-o"><?php the_category(', '); ?></div>
    <?php endif; ?>
    <div class="post-excerpt">
        <a href="<?php echo esc_url( get_permalink() ); ?>"><p><?php echo breaknews_limit_excerpt_words( get_the_excerpt(), 25 ); ?>&hellip;</p>
        <?php
            wp_link_pages( array(
                'before' => '<div class="page-links"><span class="page-links-title">',
                'after' => '</div>',
                'link_before' => '<span>',
                'link_after' => '</span>',
            ) );
        ?>
    </div>
</article></a>
<span class="clearfix"></span>