no posts displayed on the external page
-
Hello,
I’m trying to pull the recent blog posts onto the external page. It works fine with the 2.2 version but i get the “not found” on 2.5.
Here is the basic setup i’m using to pull the data:<?php define('WP_USE_THEMES', false); require('./wp-blog-header.php'); ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "https://www.w3.org/TR/html4/loose.dtd"> <html> <head></head> <body> <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <?php the_title(); ?> <?php the_content('Read the rest of this entry »'); ?> <?php else : ?> <h2 class="center">Not Found</h2> <?php endif; ?> </body> </html>
The wp-super-cache plugin is disabled for this page and the blog lives in the root.
Does anybody have any clue why this could be happening?
Thanks,
Aleks
- The topic ‘no posts displayed on the external page’ is closed to new replies.