Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I'm a designer and front-end web designer and I have a client that wants me to put her wordpress into a static site. Is there a way that I can embed the blog into a new site? Or is there a way that I can create a back door so that even though she cannot read html she can add new updates to the site?

I've been looking for the answer, but can't seem to figure it out. Please let me know what my options are.

share|improve this question
    
What does "put her wordpress into a static site" mean exactly? Do you want the static pages to become editable in Wordpress? –  Pekka 웃 May 31 '11 at 18:36
    
Hmm, I voted to close on the basis of the (original) title and a skim of the question. Now, I'm feeling that there is the basis of a valid question here, and I hope @lauren follows up with soem more info so we can deliver a helpful answer. –  APC May 31 '11 at 18:39
    
This should go to wordpress.stackexchange.com –  songdogtech May 31 '11 at 19:00
add comment

migrated from stackoverflow.com May 31 '11 at 18:57

This question came from our site for professional and enthusiast programmers.

3 Answers

There's two ways you can do it. "Reverse engineer" the database and use MySQL in PHP code to get the news articles, though it's pretty trivial, and use a few filter functions defined in the WP headers to transform the post content.

Or use the functions entirely from the WP headers, described in http://codex.wordpress.org/Integrating_WordPress_with_Your_Website.

I did this with my band's website and use Disqus comments to add comments to my static site, but didn't think of using the functions method and went for... manual approach. Either way, it's basically just getting the post data yourself and spewing it out using PHP.

share|improve this answer
add comment

I think what you are looking for is a method of displaying blog content on a static site. You could do this several ways. One way would be to use an Iframe, another would be to use a module that allows you to display contents of an RSS feed.

Here is info about the iframe tag if you are unfamiliar with it. http://www.w3schools.com/tags/tag_iframe.asp

For displaying an RSS feed try looking for an open source module like: http://www.zazar.net/developers/zrssfeed/

http://www.rssreader.magix-cjquery.com/

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.