<?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>
Comments (0)