LIVE Monday, November 23, 2026 DOW β–² +0.42% S&P 500 β–² +0.65% NASDAQ β–² +0.81%
BBBBFNEWS
BBBBF News – Breaking World, U.S. & Business Headlines
Real-time international reporting, market trends, technological breakthroughs, and in-depth global perspectives.
ALERT
WEBSITE TUTORIAL

WordPress display articles by category

WordPress display articles by category
<?php
$cat_query = new WP_Query(array(
    'cat' => '2'
        ));
?>
<div id="sitebar">
    <ul class="nav nav-pills nav-stacked nav-og">
        <?php
        if ($cat_query->have_posts()) : while ($cat_query->have_posts()) : $cat_query->the_post();
                ?>
                <li><a href=β€œ<?php the_permalink() ?>” target=β€œ_blank” title=β€œ<?php the_title(); ?>”><?php the_title(); ?></a></li>
            <?php endwhile; ?>
        <?php endif; ?>
    </ul>
</div>