WordPress.org

Ready to get started?Download WordPress

Forums

Selecting posts of one category (1 post)

  1. cregy
    Member
    Posted 6 years ago #

    Hi

    I am trying to do something similar to this post:
    http://wordpress.org/support/topic/156914?replies=7

    I actually have a suckerfish menu that I am trying to list the last 10 posts from a certain category. Here is the code:

    <li><a href="http://www.uniquecards.org/category/print-training-and-tips/">Print Training and Tips</a>
    <ul>
    <?php
    query_posts('cat=3&showposts=5');
    if (have_posts()) {
    while (have_posts()) { the_post();
    ?><li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
    <?php
    } // end while loop
    } // end if
    wp_reset_query();
    ?>
    </ul>
    </li>

    And a link to the page:
    The Page

    As you can see no drop down is created. Any ideas why please?

    Thanks

    Rich

Topic Closed

This topic has been closed to new replies.

About this Topic