• Hi there,

    I’m looking at the instructions and trying to get myself up to speed with WordPress Codex in integrating certain parts of my new wordpress blog into a site design.

    Now I’ve just created a test page using some of the code at https://www.andyfwood.com/testblog.php. Now it appears to be blank and I must be missing something. I’m trying to get it to show my latest posts in full from https://www.andyfwood.com/wordpress.

    If someone could direct me in the right direction or perhaps something isn’t quite right with my code on the testblog.php.

    <?php
    require('https://www.andyfwood.com/wordpress/wp-blog-header.php');
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="https://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Testing</title>
    </head>
    
    <body>
    <?php if (have_posts()) : ?>
                   <?php while (have_posts()) : the_post(); ?>
                   <!-- do stuff ... -->
                   <?php endwhile; ?>
         <?php endif; ?>
    </body>
    </html>
Viewing 1 replies (of 1 total)
  • Andy, the very first thing that you’re doing is failing. You’ll notice that your page doesn’t even have a title. This means that the PHP interpreter is getting hung up on something before you define <title>Testing</title>. Because this is a production server, PHP is failing silently rather than showing you any errors. I would suggest that you set up a local mirror of your site so that you can do testing and view any errors that PHP might be throwing. If you’ve got a Windows PC, check out this guide. If you’re on a Mac, go here.

Viewing 1 replies (of 1 total)
  • The topic ‘Integrating WordPress’ is closed to new replies.