libellule24
Forum Replies Created
Viewing 2 replies - 1 through 2 (of 2 total)
-
Forum: Fixing WordPress
In reply to: static frontpage with 1 blog post and a list of 5 recent postsI 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
In reply to: Fatal error: Call to a member function set_prefix()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)