WordPress.org

Support

Support » Themes and Templates » [Resolved] Showing Posts

[Resolved] Showing Posts

  • Hi

    I am using Ryan Boren’s plugin that creates a home page called Page to Front. I have also created a home.php template. This template displays the details of the home page across the top and in the right hand column the links list.

    Here’s the problem! In the left hand column I want it to display the latest three posts from category no.1. I have used the following code:
    [h2]Recent Posts[/h2]
    [?php
    // I love WordPress so
    query_posts(‘showposts=1&cat=2’);
    ?]
    [?php if (have_posts()) : while (have_posts()) : the_post(); ?]
    [li][a href=”[?php the_permalink() ?]”][span class=”date”][?php the_time(‘M.d’) ?][/span] [?php the_title() ?] [/a][/li]
    [?php endwhile; endif; ?]
    (I have replaced the < with a [)

    But if you look at the front page of the site it is not actually displaying anything! Is this something to do with my code or the plugin please?

    Thanks

    Rich

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] Showing Posts’ is closed to new replies.
Skip to toolbar