Support » Themes and Templates » Try to show the last post from X category

  • Resolved Neverio

    (@neverio)


    Hello

    I try to show the last post from X category.
    But dont get i to work.
    When i try this code i have, i got the last post on all the other plase to.

    <?php
    query_posts('posts_per_page=1', 'cat=3');
    while (have_posts()) : the_post();
    the_content();
    endwhile;
    ?>

    So can some one help me? 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Try to show the last post from X category’ is closed to new replies.