Skip to content
Uncategorized

Flickr-WordPress – I had to write it

So, after all the tinkering, I had to write it myself. I couldn’t get anything exactly right, so I wrote something with Flickr APIs to generate the HTML that I wanted, as well as following Creative Commons best practices for attribution. It’s just a stand-alone PHP CLI script, with hopes and desires to grow up to be a Word Press Plugin.

The code is up on github, flickr-share-with-attribution, under the 2-clause BSD license.

My awesome cats Angel, Lucy and Veronica demonstrate here what the results look like (results may vary per theme):

Angel by DavidDPD
<div class="flickrcredit">
  is licensed under <a href="https://creativecommons.org/licenses/by-nc-nd/2.0/">CC BY-NC-ND 2.0</a> via Flickr
</div>

<div class="flickrdesc">
  IMG_1032
</div></p>
 
 
Lucy - The Famous Yawn by DavidDPD
<div class="flickrcredit">
  is licensed under <a href="https://creativecommons.org/licenses/by-nc-nd/2.0/">CC BY-NC-ND 2.0</a> via Flickr
</div>

<div class="flickrdesc">
  IMG_4610
</div></p>
 
 
IMG_4141 by DavidDPD
<div class="flickrcredit">
  is licensed under <a href="https://creativecommons.org/licenses/by-nc-nd/2.0/">CC BY-NC-ND 2.0</a> via Flickr
</div>

<div class="flickrdesc">
  Veronica
</div></p>