{"id":363,"date":"2010-08-12T21:25:12","date_gmt":"2010-08-12T20:25:12","guid":{"rendered":"http:\/\/www.andrewj.com\/blog\/index.php\/2010\/integrating-external-content-with-wordpress\/"},"modified":"2010-08-12T21:25:21","modified_gmt":"2010-08-12T20:25:21","slug":"integrating-external-content-with-wordpress","status":"publish","type":"post","link":"https:\/\/www.andrewj.com\/blog\/2010\/integrating-external-content-with-wordpress\/","title":{"rendered":"Integrating External Content with WordPress"},"content":{"rendered":"<p>I&#8217;ve been developing <em>andrewj.com <\/em>for about 15 years, and although I&#8217;m not that prolific I&#8217;ve built up quite a lot of content.<\/p>\n<p>I recently converted my blog from an old bespoke (= &#8220;custom&#8221;, for my American friends) solution to one based on WordPress. However, this created a problem, in that the WordPress model is to hold all content in the database, and that wasn&#8217;t the right model for me.<\/p>\n<p>Firstly, I have a number of articles which are very long for a blog post, and I had no interest in restructuring them. I also didn&#8217;t want to break external links to the existing articles.<\/p>\n<p>Next, I decided that I wanted the freedom to continue to write in that style. Some of my writing takes several weeks, and it works for me to draft it as separate HTML pages. I also sometimes want to include active content or multiple images, and I don&#8217;t want to create a large and unwieldy WordPress database full of such stuff.<\/p>\n<p>Finally, my online photo galleries are managed and generated using Jalbum, and I wanted to find a way of neatly integrating single images into my blog, complete with the watermarks and metadata extraction which Jalbum manages so well, without duplicating that functionality in WordPress.<\/p>\n<p>This is probably typical of many older web sites, but WordPress doesn&#8217;t really embrace the integration of external content. <a href=\"\/thoughts\/linkexternal.asp\">This article<\/a> describes how I solved this problem, and a WordPress plugin I have developed to make my solution reusable.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve been developing andrewj.com for about 15 years, and although I&#8217;m not that prolific I&#8217;ve built up quite a lot of content. I recently converted my blog from an old bespoke (= &#8220;custom&#8221;, for my American friends) solution to one &hellip; <a href=\"https:\/\/www.andrewj.com\/blog\/2010\/integrating-external-content-with-wordpress\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9,8,11],"tags":[],"_links":{"self":[{"href":"https:\/\/www.andrewj.com\/blog\/wp-json\/wp\/v2\/posts\/363"}],"collection":[{"href":"https:\/\/www.andrewj.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.andrewj.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.andrewj.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.andrewj.com\/blog\/wp-json\/wp\/v2\/comments?post=363"}],"version-history":[{"count":0,"href":"https:\/\/www.andrewj.com\/blog\/wp-json\/wp\/v2\/posts\/363\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.andrewj.com\/blog\/wp-json\/wp\/v2\/media?parent=363"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.andrewj.com\/blog\/wp-json\/wp\/v2\/categories?post=363"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.andrewj.com\/blog\/wp-json\/wp\/v2\/tags?post=363"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}