WordPress - can you embed the blog into a html page?

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
simonmlewis
DevNet Master
Posts: 4435
Joined: Wed Oct 08, 2008 3:39 pm
Location: United Kingdom
Contact:

WordPress - can you embed the blog into a html page?

Post by simonmlewis »

We have created a new WordPress blog. We need to get it on our web site.
I don't like the idea of installing it on our site, installing a new DB for it, a PHP Config file (scares me).

Surely there is a means to embed, like you would with a YouTube video.

So... how do you do it?
Love PHP. Love CSS. Love learning new tricks too.
All the best from the United Kingdom.
User avatar
McInfo
DevNet Resident
Posts: 1532
Joined: Wed Apr 01, 2009 1:31 pm

Re: WordPress - can you embed the blog into a html page?

Post by McInfo »

<iframe>
simonmlewis
DevNet Master
Posts: 4435
Joined: Wed Oct 08, 2008 3:39 pm
Location: United Kingdom
Contact:

Re: WordPress - can you embed the blog into a html page?

Post by simonmlewis »

But will Google and other search engines see it? or just see the script that says it has a blog on the site?

We need the blog, for a) the fact it has a blog and b) the content of the blog.
Love PHP. Love CSS. Love learning new tricks too.
All the best from the United Kingdom.
User avatar
McInfo
DevNet Resident
Posts: 1532
Joined: Wed Apr 01, 2009 1:31 pm

Re: WordPress - can you embed the blog into a html page?

Post by McInfo »

A search engine would follow the URL linked by the iframe and crawl the blog site. Anyone referred by search results for content hosted on the blog would likely go directly to the blog. You would need to provide links on the blog for them to find your master site.

If you don't like the iframe idea, you could use cURL or file functions to have your master site request the blog page and embed the content; but you would have to work around issues with mixing the HTML, CSS, and JavaScript of the two sites. You could build custom pages on the blog to display compatible HTML snippets. If you require more interactivity than displaying blog posts, you would have to devise a convention for distinguishing which site is being requested when someone clicks a hyperlink or submits a form.
matthijs
DevNet Master
Posts: 3360
Joined: Thu Oct 06, 2005 3:57 pm

Re: WordPress - can you embed the blog into a html page?

Post by matthijs »

Not sure, but why not put it on your own website/server? Sounds a lot more complicated to try to embed the wordpress site, then to just move it to your own server. What is the reason you don't want to do that?
Post Reply