Replies: 0
How to display featured posts as the first in a standard loop?
I noticed the posts have class <li class = "jsFeatured">
. I would like to always show up at the top of the list.
My code:
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<li <?php post_class(); ?>>
<?php the_title(); ?>
</li>
<?php endwhile; else : ?>
<li><?php _e( 'No posts' ); ?></li>
<?php endif; ?>
Thanks.