Skip to content

Instantly share code, notes, and snippets.

<?php// Get RSS Feed(s)
include_once(ABSPATH . WPINC . '/rss.php');
$rss = fetch_rss('http://gdata.youtube.com/feeds/base/users/MontyPython/uploads?alt=rss&v=2&orderby=published&client=ytapi-youtube-profile');$maxitems = 3; //set number of items to display
$items = array_slice($rss->items, 0, $maxitems);
?>
<ul>
<?php if (empty($items)) echo '<li>No items</li>';
else foreach ( $items as $item ) : ?>
<div>
<?php
# Make your changes
work work work
git commit
git co joshp/staging
git merge master
git co joshp/production
git merge master
git push
git co master