Add a blog to an existing webpage

I did the exact same thing on my site. I had about 20 static pages, wanted to add a blog and wanted to add content from the WP pages to the static pages. It was not hard to find a theme that (almost) matched my static pages. Everything outside of /tech/ is a static page.

You can also get a very minimalistic theme and then make it match your design. It's one big heaping cut and paste of CSS, re-labling elements to match what WP wants then a little tweaking. I've done it in under 8 hours on other sites.

Read up on using the Wordpress loop. This is so much easier than you think it's going to be, especially if your stuff is already done in PHP.

Edit:

Here's a snippet of the code that I use in my static pages, which allows me to then use all of the other WP functions in the existing code:

<?php
    if ( empty( $wp ) )
       require_once( "tech/wp-config.php" );
    wp();
?>

Then, getting a list of recent posts is as easy as:

<?php get_archives( 'postbypost', 8 ); ?>

Just look out for using deprecated functions, I've got a few still left to clean out from when I integrated WP 2 years ago.

Tags:

Php

Wordpress