{"id":64926,"date":"2011-11-25T08:45:47","date_gmt":"2011-11-25T13:45:47","guid":{"rendered":"http:\/\/wpmu.org\/?p=64926"},"modified":"2011-11-25T12:22:40","modified_gmt":"2011-11-25T17:22:40","slug":"quick-easy-flickr-integration-wordpress-blog","status":"publish","type":"post","link":"https:\/\/wpmudev.com\/blog\/quick-easy-flickr-integration-wordpress-blog\/","title":{"rendered":"Quick &amp; Easy Flickr Integration For Your WordPress Blog"},"content":{"rendered":"<figure id=\"attachment_64944\" class=\"wp-caption aligncenter\" data-caption=\"true\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-64944\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2011\/11\/wordpress-loves-flickr1.jpg\" alt=\"WordPress Loves Flickr\" width=\"400\" height=\"272\" \/><figcaption class=\"wp-caption-text\">Feel the love.<\/figcaption><\/figure>\n<p>If you love <a title=\"Flickr\" href=\"http:\/\/www.flickr.com\/\" rel=\"noopener\" target=\"_blank\">Flickr<\/a> and WordPress, I&#8217;m sure you would love to know how you can <strong>display your Flickr photos in your blog posts<\/strong>. Whilst there a few plugins available, the best I have found in terms of quick and easy implementation is <a title=\"Flickr Gallery\" href=\"http:\/\/wordpress.org\/extend\/plugins\/flickr-gallery\/other_notes\/\" rel=\"noopener\" target=\"_blank\">Flickr Gallery<\/a>.<\/p>\n<p>Using just a simple piece of shortcode, <strong>you can link directly to your entire gallery<\/strong>:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-64928\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2011\/11\/flickr-gallery.jpg\" alt=\"Flickr Gallery\" width=\"602\" height=\"600\" \/>Or you can <strong>pull a single image from Flickr<\/strong>\u00a0simply by referring to its unique ID:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-64929\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2011\/11\/flickr-photo.jpg\" alt=\"Flickr Photo\" width=\"517\" height=\"447\" \/>You can also <strong>display photos filtered by a specific tag, or tags<\/strong>:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-64930\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2011\/11\/flickr-tags.png\" alt=\"Flickr Tags\" width=\"449\" height=\"143\" \/>There are a few other features, <strong>none of which are overwhelming<\/strong> if you want to just stick to basics.<\/p>\n<h2>Implementation<\/h2>\n<p>Certain WordPress plugins (naming no names) have a habit of being far too complicated to implement and use, but <strong>that is thankfully not the case with <a title=\"Flickr Gallery\" href=\"http:\/\/wordpress.org\/extend\/plugins\/flickr-gallery\/other_notes\/\" rel=\"noopener\" target=\"_blank\">Flickr Gallery<\/a><\/strong>.<\/p>\n<p>First of all, download and install the plugin. Then head to the settings screen where you will be prompted for an API key:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-64932\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2011\/11\/flickr-api-key.png\" alt=\"Flickr API Key\" width=\"232\" height=\"81\" \/>Go ahead and click on the &#8220;API Key&#8221; link. This will direct you to the <a title=\"Flickr App Garden\" href=\"http:\/\/www.flickr.com\/services\/apps\/create\/apply\/\" rel=\"noopener\" target=\"_blank\">Flickr App Garden<\/a>, where you can apply for an API key.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-64933\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2011\/11\/flickr-api.jpg\" alt=\"Flickr API Application\" width=\"620\" height=\"382\" \/> <\/p>\n<p>Put a name and short description in (it&#8217;s not important), check the boxes, and hit &#8220;Submit&#8221;. You should then be presented with your API key and &#8220;secret&#8221;:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-64934\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2011\/11\/flickr-api-key-conf.jpg\" alt=\"Flickr API Key\" width=\"525\" height=\"210\" \/><\/p>\n<p>That&#8217;s the API sorted! Input the API key and your User ID in the Flickr Gallery settings screen.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-64935\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2011\/11\/flickr-gallery-settings.jpg\" alt=\"Flickr Gallery Settings\" width=\"607\" height=\"148\" \/>If you don&#8217;t know your User ID, you can use the drop down box to select from your User Name, Email Address, or Flickr photopage URL (e.g.\u00a0<a href=\"http:\/\/www.flickr.com\/photos\/tomewer\" target=\"_blank\">http:\/\/www.flickr.com\/photos\/tomewer<\/a>).<\/p>\n<p><strong>That is literally all you need to do to get up and running!<\/strong><\/p>\n<h2>Shortcodes<\/h2>\n<p>Now you just need to insert the relevant piece of shortcode where you want your photo(s) to be displayed. <strong>Here are the best choices:<\/strong><\/p>\n<p><code>[flickr-gallery]<\/code> &#8211; as you might expect, this <strong>displays a gallery of your Flickr images<\/strong>. You can set the number of images to be displayed, and the tabs to be shown, in the settings screen.<\/p>\n<p><code>[flickr]6394973101[\/flickr]<\/code> &#8211; this <strong>displays a single image<\/strong>. The numbers represents the unique ID of whichever image you want to show.<\/p>\n<p><code>[flickr-gallery mode=\"tag\" tags=\"yourtag\" tag_mode=\"all\"]<\/code>\u00a0&#8211; this <strong>shows all images with the named tag<\/strong>. You can include multiple tags with comma\u00a0separation\u00a0(e.g. &#8216;tags=&#8221;tag1, tag2&#8243;&#8216;)<\/p>\n<p><strong>The full list of shortcodes can be found <a title=\"Flickr Gallery Shortcode\" href=\"http:\/\/wordpress.org\/extend\/plugins\/flickr-gallery\/other_notes\/\" rel=\"noopener\" target=\"_blank\">here<\/a>.<\/strong><\/p>\n<p style=\"text-align: right; font-size: 80%;\"><em>Creative Commons images courtesy of <a href=\"http:\/\/claycauleyinc.com\/blog\" rel=\"noopener\" target=\"_blank\">Clay Cauley<\/a>, <a href=\"http:\/\/www.everaldo.com\/\" rel=\"noopener\" target=\"_blank\">Everaldo Coelho<\/a>\u00a0and <a href=\"http:\/\/icons.mysitemyway.com\/\" rel=\"noopener\" target=\"_blank\">mysitemyway<\/a><\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Want to show your Flickr photos on your blog with no hassle? Here&#8217;s the solution.<\/p>\n","protected":false},"author":84405,"featured_media":64943,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"blog_reading_time":"","wds_primary_category":0,"wds_primary_tutorials_categories":0,"footnotes":""},"categories":[4],"tags":[860],"tutorials_categories":[],"class_list":["post-64926","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-plugins","tag-flickr"],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/posts\/64926","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/users\/84405"}],"replies":[{"embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/comments?post=64926"}],"version-history":[{"count":1,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/posts\/64926\/revisions"}],"predecessor-version":[{"id":217686,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/posts\/64926\/revisions\/217686"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/media\/64943"}],"wp:attachment":[{"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/media?parent=64926"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/categories?post=64926"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/tags?post=64926"},{"taxonomy":"tutorials_categories","embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/tutorials_categories?post=64926"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}