• Trying very hard to integrate the wordpress loop into my existing site however at the moment, I’m getting nothing but a blank page. I can’t figure out what I’m doing wrong here. File is saved as a .php and below is the code for the site

    <head>
    <?php
    /**
     * Front to the WordPress application. This file doesn't do anything, but loads
     * wp-blog-header.php which does and tells WordPress to load the theme.
     *
     * @package WordPress
     */
    
    /**
     * Tells WordPress to load the WordPress theme and output it.
     *
     * @var bool
     */
    define('WP_USE_THEMES', false);
    
    /** Loads the WordPress Environment and Template */
    require('./wp-blog-header.php');
    ?>
    <title>the | longmile.net 2009</title>
    <link rel="stylesheet" Href="https://thelongmile.net/style.css" Type="text/css">
    <style type="text/css">
    <!--
    .style11 {
    	font-size: large
    }
    .style12 {font-size: medium}
    -->
    </style>
    <script type="text/javascript">
    <!--
    function MM_openBrWindow(theURL,winName,features) { //v2.0
      window.open(theURL,winName,features);
    }
    //-->
    </script>
    </head>
    
    <div align="center">
      <table width="200" border="0" padding="0">
        <tr>
          <td><div align="left"><img src="https://thelongmile.net/webimages/toplogomenu.jpg"  align="right" width="900" height="405" border="0" usemap="#Map" /></div></td>
        </tr>
        <tr>
          <td background="https://thelongmile.net/webimages/tabmiddle.jpg" class="tableset"><div align="left">
    <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
    <?php endwhile; else: ?>
    <p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
    <?php endif; ?>
    
    </td>
        </tr>
    
        <tr>
          <td><div align="left"><img src="https://thelongmile.net/webimages/bottomban.jpg" width="900" height="60" /></div></td>
        </tr>
        <tr>
          <td><div align="center"><span class="style9">Browser checked compatability with Internet Explorer Version 7 | Mozilla Firefox Version 2 and Upwards | Apple Safari | Google Chrome</span></div></td>
        </tr>
      </table>
    </div>
    <p>&nbsp;</p>
    
    <map name="Map" id="Map"><area shape="rect" coords="524,345,587,371" href="index.html" />
    <area shape="rect" coords="594,345,656,373" href="gallery.html" />
    <area shape="rect" coords="668,347,739,372" href="services.html" />
    <area shape="rect" coords="749,345,819,370" href="contact.html" />
    <area shape="rect" coords="827,348,887,371" href="about.html" />
    </map></body>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Really struggling to get wordpress integrated into the site’ is closed to new replies.