• Resolved acantoro

    (@acantoro)


    Please, can U help me? Since ten days I work to display in my static front page a list of recent posts. Without any success.
    I thank U in advance

Viewing 2 replies - 1 through 2 (of 2 total)
  • How do you get that static front? Using a plugin?
    Can’t you just take one of the recent posts plugins and call it in the static page?

    I do that at ColoradoSenate.com.

    I created a static home page using the plugin, then created a home.php page and edited it.

    Because I have text that changes, and I don’t want to edit the php page all the time, I create a 2nd page, i.e., “home intro page”. I exclude it from the sidebar, and include it in the home.php page.

    Then I add the code to display the posts I want. Here is an example of the code I use to display posts from only one category:
    <?php $temp_query = $wp_query; ?>
    <?php query_posts(‘cat=1&order=DES&showposts=5’); ?>
    <?php while (have_posts()) : the_post(); ?>
    ” rel=”bookmark” title=”Permanent Link to <?php the_title(); ?>”>
    <?php the_title(); ?>
    <br><br>
    <?php endwhile; ?>
    <?php $wp_query = $temp_query; ?>

    variables are: cat=1&order=DES&showposts=5

    Hope this helps…

    K

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘posts list in my static front page’ is closed to new replies.