• I have a css layout that I use with WP. My blog is the main page of my website. I am changing my site to a database driven site. The html for each of the pages on the site will be pulled from it’s own seperate table in a database. I got that working, but how do I integrate WP into this? I tried inserting the php WP “loop” code into the table that is loaded on the main page. You can look at the source code for the page and see what I am talking about.
    https://www.joshuasplace.net/dev/
    So is there a way to have my blog displayed on the page, instead of the php code?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Are you including this at the top of your page:
    <?php
    /* Don't remove this line. */
    require('./wp-blog-header.php');
    ?>

    and also ensuring that your pages have the .php extension ?

    Thread Starter joshuaclinard

    (@joshuaclinard)

    Yes, that code is there, and it does have the php extention.

    Thread Starter joshuaclinard

    (@joshuaclinard)

    If there is no way to do this through the database, is there a workaround? Something! Help! I know someone here has got to be using wordpress with a database driven site. How do you do it.

    I think you have to have a .php extension so the webserver will execute the php commands, i could be wrong though.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to get blog to appear on database driven site?’ is closed to new replies.