Title: libellule24's Replies | WordPress.org

---

# libellule24

  [  ](https://wordpress.org/support/users/libellule24/)

 *   [Profile](https://wordpress.org/support/users/libellule24/)
 *   [Topics Started](https://wordpress.org/support/users/libellule24/topics/)
 *   [Replies Created](https://wordpress.org/support/users/libellule24/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/libellule24/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/libellule24/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/libellule24/engagements/)
 *   [Favorites](https://wordpress.org/support/users/libellule24/favorites/)

 Search replies:

## Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [static frontpage with 1 blog post and a list of 5 recent posts](https://wordpress.org/support/topic/static-frontpage-with-1-blog-post-and-a-list-of-5-recent-posts/)
 *  [libellule24](https://wordpress.org/support/users/libellule24/)
 * (@libellule24)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/static-frontpage-with-1-blog-post-and-a-list-of-5-recent-posts/#post-974263)
 * I dont understand, and I wish to have the same thing done. I’ve found this out,
   but I can’t make it work.
 *     ```
       <div>
       <?php require('../httpdocs/blogue/wp-blog-header.php'); ?>
       <?php query_posts('showposts=5'); ?>
   
       <?php if (have_posts()) : ?>
       <?php while (have_posts()) : the_post(); ?>
       	<div class="post" id="post-<?php the_ID(); ?>">
       loop.
       	</div>
       <?php endwhile; ?>
       <?php endif; ?>
       </div>
       ```
   
 * My index page isn’t in the “wordpress” file. Any ideas?
 * It’s working fine, but I don’t know how to display the last blog post. So far,
   it’s displaying five “loop” and now i’m stuck.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Fatal error: Call to a member function set_prefix()](https://wordpress.org/support/topic/fatal-error-call-to-a-member-function-set_prefix/)
 *  [libellule24](https://wordpress.org/support/users/libellule24/)
 * (@libellule24)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-call-to-a-member-function-set_prefix/#post-760196)
 * So far, it work out well for me. I’ve got the following code:
 *     ```
       <div>
       <?php require('../httpdocs/blogue/wp-blog-header.php'); ?>
       <?php query_posts('showposts=5'); ?>
   
       <?php if (have_posts()) : ?>
       <?php while (have_posts()) : the_post(); ?>
       	<div class="post" id="post-<?php the_ID(); ?>">
       loop.
       	</div>
       <?php endwhile; ?>
       <?php endif; ?>
       </div>
       ```
   
 * in a file called **colonex.php**. I include this file on my **index.php** with
   a basic include command. But now I’m a wrench.
    The “loop.” appears as many times
   as I want it to. (I’m pretty new to this, so please dont hit me!) But how do 
   I replace it with my posts? (told ya…)

Viewing 2 replies - 1 through 2 (of 2 total)