{"id":6786,"date":"2013-02-26T18:47:08","date_gmt":"2013-02-26T18:47:08","guid":{"rendered":"http:\/\/blog.widmann.org.uk\/?p=6786"},"modified":"2013-02-26T18:47:08","modified_gmt":"2013-02-26T18:47:08","slug":"setting-up-wordpress-blogs-on-flickr-properly","status":"publish","type":"post","link":"https:\/\/widmanniana.org\/blog\/setting-up-wordpress-blogs-on-flickr-properly\/","title":{"rendered":"Setting up WordPress blogs on Flickr properly"},"content":{"rendered":"<p><figure style=\"width: 240px\" class=\"wp-caption alignright\"><a href=\"http:\/\/www.flickr.com\/photos\/rocorocks\/2263688344\/\"><img decoding=\"async\" src=\"http:\/\/farm3.staticflickr.com\/2372\/2263688344_c9db9a37e7_m.jpg\" alt=\"En el Desierto - Flickr NO SE VENDE\" width=\"240px\" class=\"size-thumbnail\" \/><\/a><figcaption class=\"wp-caption-text\"><a href=\"http:\/\/www.flickr.com\/photos\/rocorocks\/2263688344\/\">En el Desierto &#8211; Flickr NO SE VENDE<\/a>, a photo by <a href=\"http:\/\/www.flickr.com\/photos\/rocorocks\/\">Rocorocks<\/a> on Flickr.<\/figcaption><\/figure><a href=\"http:\/\/www.flickr.com\/\">Flickr<\/a> allows you to connect your WordPress blog, which allows you to use a Flickr photo to illustrate a blog posting by pressing a button.<\/p>\n<p>(I always use this in conjunction with Donncha \u00d3 Caoimh&#8217;s &#8220;<a href=\"http:\/\/wordpress.org\/extend\/plugins\/flickr-blog-this-to-draft-post\/\">Blog This To Draft<\/a>&#8221; to prevent it from getting published immediately.)<\/p>\n<p>However, Flickr&#8217;s standard WordPress code isn&#8217;t very good.  It encapsulates the whole thing in <tt>&lt;div><\/tt>s, which means that WordPress cannot work out that it&#8217;s an image, which leads to all sorts of problems when you&#8217;re trying to pull out the first chunk of text from a posting, for instance in an RSS feed.<\/p>\n<p>However, if you know what you&#8217;re doing, it&#8217;s quite easy to change.  You need to go to your Flickr settings, and then click on the &#8220;Sharing &amp; Extending&#8221; tab.<\/p>\n<p>You should now see your blog (if it isn&#8217;t there, add it by clicking on &#8220;More sites&#8221; and following the instructions).<\/p>\n<p>Now click on the &#8220;edit&#8221; button next to the name of your blog, and click on &#8220;select a blog layout&#8221;.<\/p>\n<p>Now pick one of the layouts by clicking on it, and then choose &#8220;customize&#8221;.<\/p>\n<p>This should display some HTML code such as this (I&#8217;ve added some white-space):<\/p>\n<pre>&lt;div style=\"float: right; width: 240px;\n    margin: 0 0 10px 10px; padding: 0;\n    font-size: 0.8em; line-height: 1.6em;\">\n  &lt;a href=\"{photo_url}\" title=\"{photo_title}\">\n    &lt;img src=\"{photo_src_m}\" alt=\"{photo_title}\n      by {uploader_name}\" \/>\n  &lt;\/a>&lt;br\/>\n  &lt;span style=\"margin: 0;\">\n    &lt;a href=\"{photo_url}\">{photo_title}&lt;\/a>,\n    a photo by &lt;a href=\"{uploader_profile}\">\n      {uploader_name}&lt;\/a>\n    on Flickr.\n  &lt;\/span>\n&lt;\/div>{description}\n&lt;br clear=\"all\" \/><\/pre>\n<p>Now change it to use WordPress&#8217;s &#091;caption] syntax, e.g.:<\/p>\n<pre>&#091;caption align=\"alignright\" width=\"240px\"]\n  &lt;a href=\"{photo_url}\">\n    &lt;img src=\"{photo_src_m}\" alt=\"{photo_title}\"\n      width=\"240px\" class=\"size-thumbnail\" \/>\n  &lt;\/a>\n  &lt;a href=\"{photo_url}\">{photo_title}&lt;\/a>,\n  a photo by\n  &lt;a href=\"{uploader_profile}\">{uploader_name}&lt;\/a>\n  on Flickr.\n[\/caption]{description}<\/pre>\n<p>Now click &#8220;preview&#8221;.  This will look dreadful, because this is WordPress code, not HTML, but just click on &#8220;save this layout&#8221; anyway.<\/p>\n<p>You should now be able to use the &#8220;share&#8221; button on Flickr to generate pretty WordPress posts.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Flickr allows you to connect your WordPress blog, which allows you to use a Flickr photo to illustrate a blog posting by pressing a button. (I always use this in conjunction with Donncha \u00d3 Caoimh&#8217;s &#8220;Blog This To Draft&#8221; to prevent it from getting published immediately.) However, Flickr&#8217;s standard WordPress code isn&#8217;t very good. It encapsulates the whole thing in &lt;div>s, which means that WordPress cannot work out that it&#8217;s an image, which leads to all sorts of problems when you&#8217;re trying to pull out the first [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[90,159,129,151],"tags":[],"class_list":["post-6786","post","type-post","status-publish","format-standard","hentry","category-blogging","category-en","category-photography","category-web"],"_links":{"self":[{"href":"https:\/\/widmanniana.org\/blog\/wp-json\/wp\/v2\/posts\/6786","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/widmanniana.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/widmanniana.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/widmanniana.org\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/widmanniana.org\/blog\/wp-json\/wp\/v2\/comments?post=6786"}],"version-history":[{"count":0,"href":"https:\/\/widmanniana.org\/blog\/wp-json\/wp\/v2\/posts\/6786\/revisions"}],"wp:attachment":[{"href":"https:\/\/widmanniana.org\/blog\/wp-json\/wp\/v2\/media?parent=6786"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/widmanniana.org\/blog\/wp-json\/wp\/v2\/categories?post=6786"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/widmanniana.org\/blog\/wp-json\/wp\/v2\/tags?post=6786"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}