Skip to content

Instantly share code, notes, and snippets.

@coreyweb
Created July 5, 2013 21:20
Show Gist options
  • Save coreyweb/5937334 to your computer and use it in GitHub Desktop.
Save coreyweb/5937334 to your computer and use it in GitHub Desktop.
<?php if ($feed = coreylib('http://api.bigcartel.com/notreble/products.xml','10 minutes')) { ?>
<?php foreach($feed->get('product') as $product) { ?>
<p><strong>URL: </strong> http://shop.notreble.com<?php echo $product->get('url') ?></p>
<p><strong>Item name: </strong> <?php echo $product->get('name') ?></p>
<p><strong>Item image: </strong> <?php echo $product->get('image/url') ?></p>
<hr />
<?php } ?>
<?php } ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment