WordPress.org

Ready to get started?Download WordPress

Forums

WordPress with Php Include. (3 posts)

  1. fadedrea
    Member
    Posted 8 years ago #

    alright all i want to know is the code to include the wordpress blog that i have by using php.
    This is my current code that i am using, but it doesnt work.

    if(!$_SERVER['QUERY_STRING']) { ?>
    <?php include ("public_html/blogg/index.php"); ?>

  2. Darcie
    Member
    Posted 8 years ago #

    blogg or blog?

  3. patrickw
    Member
    Posted 8 years ago #

    Umm, why do you have the if(!$_server stuff. can you just have the include by itself and then if needed, include the wp-blog-header.php too?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.