on my site I have wordpress (2.7) installed in a directory called blog. on the homepage of my domain (which does not use wordpress), I want to show the latest posts. To do so, I use this code below. All works fine, but now I want to use pretty urls for my permalinks. When I adjust the urls, I get the message “not found” on the homepage (the pages in the blog directory still work fine). Can anyone help me out please?
<?php require('blog/wp-blog-header.php'); if (have_posts()) : while (have_posts()) : the_post(); //all code for the loop here endwhile; else : ?> <h2 class="center">Not found</h2> <?php get_search_form(); endif; ?>
- The topic ‘loop doesn’t work on homepage with pretty urls’ is closed to new replies.