Last active
January 2, 2017 04:08
-
-
Save bennettscience/4b2e3e06e554c93d7e402f17f92282a0 to your computer and use it in GitHub Desktop.
flickr RSS XML object
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Put this into the WordPress functions.php file to embed a large image from the Flickr RSS feed */ | |
function edit_content_img($content) { | |
$content = preg_replace("/(_m)/", "_b", $content); | |
return $content; | |
} | |
add_filter( 'the_content', 'edit_content_img'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<item> | |
<title>IMG_20170101_204252_copy</title> | |
<link>https://www.flickr.com/photos/bennettscience/31231759933/</link> | |
<!-- The description is syndicated to the post by FeedWordPress --> | |
<description> | |
<p><a href="https://www.flickr.com/people/bennettscience/">bennettscience</a> posted a photo:</p> <p><a href="https://www.flickr.com/photos/bennettscience/31231759933/" title="IMG_20170101_204252_copy"><img src="https://farm1.staticflickr.com/543/31231759933_ba613deec1_m.jpg" width="180" height="240" alt="IMG_20170101_204252_copy" /></a></p> | |
</description> | |
<pubDate>Sun, 01 Jan 2017 19:55:22 -0800</pubDate> | |
<dc:date.Taken>2017-01-01T21:55:22-08:00</dc:date.Taken> | |
<author flickr:profile="https://www.flickr.com/people/bennettscience/">nobody@flickr.com (bennettscience)</author> | |
<guid isPermaLink="false">tag:flickr.com,2004:/photo/31231759933</guid> | |
<media:content url="https://farm1.staticflickr.com/543/31231759933_ba613deec1_b.jpg" type="image/jpeg" height="1024" width="768"/> | |
<media:title>IMG_20170101_204252_copy</media:title> | |
<media:thumbnail url="https://farm1.staticflickr.com/543/31231759933_ba613deec1_s.jpg" height="75" width="75"/> | |
<media:credit role="photographer">bennettscience</media:credit> | |
<creativeCommons:license> | |
https://creativecommons.org/licenses/by/2.0/deed.en | |
</creativeCommons:license> | |
</item> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment