Integrate WordPress into existing website

I tried reading the WordPress codex about integrating WordPress into an existing website.

I tried using the header information

<?php /* Short and sweet */ define(‘WP_USE_THEMES’, false); require(‘./wp-blog-header.php’); ?>

And then the test code

<?php // Get the last 3 posts. global $post; $args = array( ‘posts_per_page’ => 3 ); $myposts = get_posts( $args ); foreach( $myposts as $post ) : setup_postdata($post); ?> <a href=”<?php the_permalink() ?>” rel=”bookmark” title=”Permanent Link to <?php the_title_attribute(); ?>”><?php the_title(); ?></a><br /> <?php endforeach; ?>

It does not work. Can someone help me? I tried posting at the WordPress forum, but no help there

Read more here:: Integrate WordPress into existing website

Leave a Reply

Your email address will not be published. Required fields are marked *