Page 1 of 1

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

Posted: Wed Apr 17, 2013 7:37 am
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?

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

Posted: Wed Apr 17, 2013 7:58 am
by McInfo
<iframe>

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

Posted: Wed Apr 17, 2013 8:02 am
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.

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

Posted: Wed Apr 17, 2013 2:37 pm
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.

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

Posted: Sun Apr 21, 2013 3:22 pm
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?