Viewing 3 replies - 1 through 3 (of 3 total)
  • jimid,
    here is an example:

    in the php file you want to put content from your blog in

    <?php require('./blog/wp-blog-header.php');
    if (have_posts()) : while (have_posts()) : the_post();
    the_title();
    endwhile; else:
    endif; ?>

    that will pull all your titles

    you can user query_posts or any other variation of the loop to pull content, titles, etc.. just make sure that you load wp-blog-header.php

    I just upgraded to WP 2.5 and the above code returns nothing (0 posts) even though there are posts. The code worked fine with WP 2.3

    Is this a bug or did something change?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Outside WP Directory’ is closed to new replies.