views:

24

answers:

1

Hey guys. I used this: http://inchoo.net/wordpress/how-to-use-wordpress-home-page-in-magento-home-page-cms-page/comment-page-1/#comment-8020

to accomplish getting my wordpress to show some info inside magento (blog posts) but I can not understand how to pull in the entire page. The only part I don't want is the header and footer.

Any ideas?

A: 

You need to iclude the wp-blog-header.php to your magento template.
If you add the following line at the top of your magento template, you will have access to all WP commands:

require_once($_SERVER['DOCUMENT_ROOT'].'/wp-blog-header.php');

(make sure you use the right path)

Now you just ned to create a loop and display the post. You may also get posts from a specific category if you wish.

Steven
thank you very much steven
mike m
If it works, please set this answer to accepted :)
Steven