Support » Fixing WordPress » How can i show last N Posts from Special Category?

  • Hello Dear,

    How can i show last 10 (or 20) Entries from Special Category ( link Game Category ) in Main Page ? Please give me the code.

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You could do something like this

    <?php query_posts('category_name=wordpress&showposts=5'); ?>

    right before the loop starts

    <?php while (have_posts()) : the_post(); ?>

    Change wordpress to the name of your category and 5 to the number of posts that you want to show.

    Thanks in advance.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How can i show last N Posts from Special Category?’ is closed to new replies.