How do I use "The Loop" to call posts into my non-wp site? (3 posts)

  1. aerophire
    Posted 10 years ago #


    I currently have wp 2.0 on my server, along with my own site running in a different folder on the same linux server. I am trying to use WP for the backend posts and such, and have the recent posts called into my site via a PHP function, possibly with "the Loop". I've read up a little on it, yet am uncertain as to where I put my index.php file (for my site) so that it can use wordpress's functions.
    I also want to get the post itself to be called up in my site's own content area, not inside wordpress's.
    Sorry if its a little confusing but I guess this shows my mind's status at the time.

    Thanks in advance

  2. James Huff
    Support Team Rep.
    Posted 10 years ago #

  3. aerophire
    Posted 10 years ago #


    I have fixed it, just had to include
    <?php /* Don't remove this line. */ require('./wp-blog-header.php'); ?>

    with my wp-blog-header's correct path.

    I presume all style-based changes can be handled with CSS, and that a "latest posts" area shouldn't be too hard now?

Topic Closed

This topic has been closed to new replies.

About this Topic