WordPress.org

Ready to get started?Download WordPress

Forums

sidebar widget or plugin to show 'featured' posts per category? (2 posts)

  1. Anointed
    Member
    Posted 5 years ago #

    I am trying to find a plugin or widget that will allow me to display 'article titles' that I choose to display on my sidebar.
    kind of like this site:
    http://www.pearsonified.com/

    on the right he has 'must reads' 'worth a look' etc....

  2. MichaelH
    Member
    Posted 5 years ago #

    Probably just a matter of categorizing the posts accordingly and then using the template tag, query_posts(), with something like:

    <h2>worth a look</h2>
    <ul>
    <?php query_posts('cat=5&showposts=6'); ?>
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    <li><a href="<?php the_permalink() ?>"><?php the_title() ?></a></li>
    <?php endwhile; endif; ?>
    </ul>

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.