troubleshooting Question

Embed Wordpress Blog into my Web Site

Avatar of RickEpnet
RickEpnetFlag for United States of America asked on
PHPBlogsWordPress
10 Comments1 Solution725 ViewsLast Modified:
I have a Web Site and PHP works fine on it and I have a Wordpress blog.

Path is as follows  websiteroot/blog

This is on a Windows server. The blog it self works fine
www.epnetworking.com/blog

I have a page like this but nothing shows up. Here is the test page. I found this code while search for a way to do this.
*****************Start Code************************
<html>
<head>
<title> PHP Test Script </title>
<?php require_once”./blog/wp-load.php”; ?>
</head>
<body>
<?php get_header();?> // Get the header of your new blog template

<?php query_posts(‘showposts=3');?> // You can set the number of post to show

<?php while (have_posts()): the_post(); ?>// The while loop to show the post

<h2><?php the_title(); ?></h2>// Show the title of the post…

<?php the_content();?>// Show the content of the post…

<?php endwhile; ?>// end of while loop

<?php
get_sidebar(); // Get the side bar of your blog template
get_footer(); // Get the footer of your blog template
?>
</body>
</html>
**********************End Code****************
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 10 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 10 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros