WordPress.org

Ready to get started?Download WordPress

Forums

WordPress stops processing html (4 posts)

  1. dhacker
    Member
    Posted 8 years ago #

    I'm trying to include my blog in a page that already has content. Simply put, my page looks like this:

    <html>
    <body>
    Here is some code
    <?php
    /* Short and sweet */
    define('WP_USE_THEMES', true);
    require('./wp-blog-header.php');
    ?>

    and here is some more

    </body>
    </html>

    I see my words "Here is some code" for a moment, then WordPress does it's thing and wipes out my words. WordPress never generates the "and here is some more" code. I've looked through the loop code and can't figure out why WordPress stops my processing. Where should I look next?

  2. Kafkaesqui

    Posted 8 years ago #

    define('WP_USE_THEMES', false);

    Try that instead.

  3. dhacker
    Member
    Posted 8 years ago #

    When I do that I get no WordPress content at all.

  4. Kafkaesqui

    Posted 8 years ago #

    If you want to include your blog in a non-WordPress PHP document, see this for the best way to set it up:

    http://codex.wordpress.org/Creating_a_Static_Front_Page#Integrating_WordPress

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags