Embeding Wordpress in PHP templating site

They have: 7 posts

Joined: Aug 2011

I have a simple site (header.php, footer.php and some content sites in between) and I want to include Wordpress as one of them. I install it and it works as domainname.com/blog, but I am wondering if I can get it to work under regular header.php, just like with other pages (Home, Services, Resources, Blog, Contact)

I am using something like this:

= "Media Services";

When I add the following code, it does not load anything"


,but a test file like test.php (with echo "This is test etc..") works with the same pathname.

Does anybody know what am I doing wrong. I basically want to have blog under the header here instead of

Thank you.

Greg K's picture

He has: 2,145 posts

Joined: Nov 2003

Are you wanting the entire blog to be viewable inside of the blog.php or are you only talking about including the main content? One thing to consider is that links that WP generates will most likely be back to /blog/whatever....

What you are actually wanting to display makes a huge difference on what route to take.


Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.