<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>WPCult</title>
	
	<link>http://wpcult.com</link>
	<description>WordPress Tips, Tricks, Plugins and Themes</description>
	<lastBuildDate>Sat, 07 Nov 2009 18:32:56 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/WPCult" type="application/rss+xml" /><feedburner:emailServiceId>WPCult</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com" /><item>
		<title>Think outside the box</title>
		<link>http://feedproxy.google.com/~r/WPCult/~3/b_b-EZ7w2Uc/</link>
		<comments>http://wpcult.com/think-outside-the-box/#comments</comments>
		<pubDate>Thu, 05 Nov 2009 22:27:36 +0000</pubDate>
		<dc:creator>Austin</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[Premium]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Themes]]></category>
		<category><![CDATA[UnBox]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://wpcult.com/?p=1562</guid>
		<description><![CDATA[Start to think outside the box. UnBox is a new WordPress theme for the willing. Using jQuery in fluidity.]]></description>
			<content:encoded><![CDATA[<p>Officially released today, this theme is a custom WordPress theme for those who want something different. </p>
<p>Built with loads a jQuery tricks and features. This theme is available for purchase. And dhould be up on ThemeForest as soon as they process the files.</p>
<p>For now, you can check out the working <a href="http://wpcult.com/demo/unbox">demo</a>, and if you like the theme, use this link to <object><form action="https://www.paypal.com/us/cgi-bin/webscr" method="post"><input type="hidden" name="cmd" value="_xclick" /><input type="hidden" name="business" value="deposit@frostywebdesigns.com" /><input type="hidden" name="item_name" value="UnBox Theme" /><input type="hidden" name="amount" value="25.00" /><input type="hidden" name="currency_code" value="USD" /><input type="hidden" name="item_number" value="2" /><input type="hidden" name="notify_url" value="http://wpcult.com/wp-content/plugins/wp-cart-for-digital-products/paypal.php" /><input type="hidden" name="return" value="http://wpcult.com/thank-you" /><input type="hidden" name="mrb" value="3FWGC6LFTMTUG" /><input type="hidden" name="custom" value="" id="eStore_custom_values" /><input type="image" src="" class="eStore_buy_now_button" alt="Buy Now"/></form></object>.</p>
<p><object><form method="post"  action=""  style="display:inline" onsubmit="return ReadForm1(this, true);"><input type="submit" value="Add to Cart" /><input type="hidden" name="product" value="UnBox Theme" /><input type="hidden" name="price" value="25.00" /><input type="hidden" name="product_name_tmp1" value="UnBox Theme" /><input type="hidden" name="price_tmp1" value="25.00" /><input type="hidden" name="item_number" value="2" /><input type="hidden" name="shipping" value="" /><input type="hidden" name="addcart_eStore" value="1" /><input type="hidden" name="cartLink" value="http://wpcult.com/feed/" /></form></object>.</p>
]]></content:encoded>
			<wfw:commentRss>http://wpcult.com/think-outside-the-box/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://wpcult.com/think-outside-the-box/</feedburner:origLink></item>
		<item>
		<title>How to: cut your server CPU load</title>
		<link>http://feedproxy.google.com/~r/WPCult/~3/M83ubVJFHdc/</link>
		<comments>http://wpcult.com/how-to-cut-your-server-cpu-load/#comments</comments>
		<pubDate>Mon, 26 Oct 2009 18:28:56 +0000</pubDate>
		<dc:creator>Austin</dc:creator>
				<category><![CDATA[Cult]]></category>
		<category><![CDATA[CPU]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[wp-config]]></category>

		<guid isPermaLink="false">http://wpcult.com/?p=1552</guid>
		<description><![CDATA[Cut your server CPU load for WordPress installs
]]></description>
			<content:encoded><![CDATA[<p><a rel="nofollow" href="http://fauxzen.com/cut-back-wordpress-cpu-load-on-your-server/" class="external">Cut your server CPU load for WordPress installs</a></p>
]]></content:encoded>
			<wfw:commentRss>http://wpcult.com/how-to-cut-your-server-cpu-load/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://wpcult.com/how-to-cut-your-server-cpu-load/</feedburner:origLink></item>
		<item>
		<title>How to: Create a fbshare.me shortcode</title>
		<link>http://feedproxy.google.com/~r/WPCult/~3/XNJ5Wh1j5lc/</link>
		<comments>http://wpcult.com/how-to-create-a-fbshare-me-shortcode/#comments</comments>
		<pubDate>Thu, 15 Oct 2009 23:30:49 +0000</pubDate>
		<dc:creator>Austin</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[shortcodes]]></category>

		<guid isPermaLink="false">http://wpcult.com/?p=1544</guid>
		<description><![CDATA[Social networks are everywhere. I am sure you're on facebook. Well why not at a facebook share script to your site? ]]></description>
			<content:encoded><![CDATA[<p>Don&#8217;t know PHP that well? </p>
<p>Well here is a simple way to add a share script like <a rel="nofollow" href="http://www.fbshare.me" class="external" title="Facebook share">fbshare.me</a> to your site, via shortcodes.</p>
<p>Paste the following code in your functions.php file in order to create your shortcode:</p>
<pre>
function fbshare_script() {
     return '&lt;div class=&quot;fbshare&quot;&gt;&lt;script src=&quot;http://widgets.fbshare.me/files/fbshare.js&quot;&gt;&lt;/script&gt;&lt;/div&gt;';
}
add_shortcode( 'fbshare', 'fbshare_script' );
</pre>
<p>Once done, you can display the facebook share button anywhere on your posts. In WordPress editor, make sure you are in HTML mode and insert the following: <code>[fbshare]</code>.</p>
<p>When your post will be published, the shortcode will be replaced by the fbshare.me button.</p>
]]></content:encoded>
			<wfw:commentRss>http://wpcult.com/how-to-create-a-fbshare-me-shortcode/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://wpcult.com/how-to-create-a-fbshare-me-shortcode/</feedburner:origLink></item>
		<item>
		<title>Free advise from the pro’s in Vegas</title>
		<link>http://feedproxy.google.com/~r/WPCult/~3/BcTkdGgnTG8/</link>
		<comments>http://wpcult.com/free-advise-from-the-pros-in-vegas/#comments</comments>
		<pubDate>Thu, 15 Oct 2009 00:13:25 +0000</pubDate>
		<dc:creator>Austin</dc:creator>
				<category><![CDATA[WordCamp]]></category>
		<category><![CDATA[Blog World]]></category>
		<category><![CDATA[wordcamplv]]></category>

		<guid isPermaLink="false">http://wpcult.com/?p=1540</guid>
		<description><![CDATA[WordCamp Las Vegas is taking place this weekend. But its a special event in collaboration with Blog World Expo! That means that it&#8217;s going to be a big crazy weekend for geeks and techies in the Vegas area.
I will be working the WordPress genius bar inside the Las Vegas Convention center. So if you&#8217;re traveling [...]]]></description>
			<content:encoded><![CDATA[<p><a rel="nofollow" href="http://lasvegaswordcamp.com" class="external">WordCamp Las Vegas</a> is taking place this weekend. But its a special event in collaboration with <a rel="nofollow" href="http://blogworldexpo.com" class="external">Blog World Expo</a>! That means that it&#8217;s going to be a big crazy weekend for geeks and techies in the Vegas area.</p>
<p>I will be working the WordPress genius bar inside the Las Vegas Convention center. So if you&#8217;re traveling to Vegas for Blog World, or coming just for the WordCamp, stop by and say hi. I&#8217;ve also posted a few links via my <a rel="nofollow" href="http://austinpassy.com/2009/10/on-my-way-to-blog-world-expo-wordcamp/" class="external">personal blog</a> for events happening all weekend, starting tomorrow.</p>
]]></content:encoded>
			<wfw:commentRss>http://wpcult.com/free-advise-from-the-pros-in-vegas/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://wpcult.com/free-advise-from-the-pros-in-vegas/</feedburner:origLink></item>
		<item>
		<title>A chance at gold</title>
		<link>http://feedproxy.google.com/~r/WPCult/~3/x_mUekd3ZrY/</link>
		<comments>http://wpcult.com/a-chance-at-gold/#comments</comments>
		<pubDate>Fri, 18 Sep 2009 19:38:03 +0000</pubDate>
		<dc:creator>Austin</dc:creator>
				<category><![CDATA[Cult]]></category>
		<category><![CDATA[WordCampLA]]></category>
		<category><![CDATA[WP-Ecommerce]]></category>

		<guid isPermaLink="false">http://wpcult.com/?p=1533</guid>
		<description><![CDATA[I was given a few free gold upgrades for the WP e-Commerce plugin.
]]></description>
			<content:encoded><![CDATA[<p>I was <a rel="nofollow" href="http://wordcamp.la/2009/09/16/more-winners-free-stuff-inmotion-hosting/" class="external">given</a> a few free gold upgrades for the <a rel="nofollow" href="http://instinct.co.nz/wp-ecommerce"class="external">WP e-Commerce</a> plugin.</p>
]]></content:encoded>
			<wfw:commentRss>http://wpcult.com/a-chance-at-gold/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://wpcult.com/a-chance-at-gold/</feedburner:origLink></item>
		<item>
		<title>WordCamp comes to Los Angeles</title>
		<link>http://feedproxy.google.com/~r/WPCult/~3/iLd1y50aNRo/</link>
		<comments>http://wpcult.com/wordcamp-comes-to-los-angeles/#comments</comments>
		<pubDate>Wed, 09 Sep 2009 16:05:44 +0000</pubDate>
		<dc:creator>Austin</dc:creator>
				<category><![CDATA[WordCamp]]></category>
		<category><![CDATA[WordCampLA]]></category>

		<guid isPermaLink="false">http://wpcult.com/?p=1522</guid>
		<description><![CDATA[Another WordCamp has arrived at my doorstep, this time I am the organizer of the event. So if any of you WordPress fans are in the greater Los Angeles area, or within a 200 mile radius I suggest you get you fingers type or click on this link.
For more info I suggest heading over to [...]]]></description>
			<content:encoded><![CDATA[<p><div id="attachment_1524" class="wp-caption alignleft" style="width: 310px"><img src="http://wpcult.com/wp-content/uploads/2009/09/wordcampla-wpcult-300x300.jpg" alt="WordCampLA September 12th, 2009" title="WordCampLA" width="300" height="300" class="size-medium wp-image-1524" /><p class="wp-caption-text">WordCampLA September 12th, 2009</p></div> Another <a rel="nofollow" href="http://www.wordcamp.org" class="external">WordCamp</a> has arrived at my doorstep, this time I am the organizer of the <a rel="nofollow" href="http://www.eventbrite.com/r/thefrosty">event</a>. So if any of you WordPress fans are in the greater Los Angeles area, or within a 200 mile radius I suggest you get you fingers type or click on this <a rel="nofollow" href="http://wordcampla.eventbrite.com" class="external" title="WordCampLA tickets @ Eventbrite">link</a>.</p>
<p>For more info I suggest heading over to <a rel="nofollow" href="http;//wordcamp.la" class="external" title="WordCampLA">http://wordcamp.la</a>. We&#8217;ve got a great line up of speakers, an amazing venue and cool goodies!</p>
<p>As always, I will try an write up as much as I see, and take some great photos/video.</p>
<h3 class="clear">If you a fan, would you help us out and <a rel="nofollow" href="http://digg.com/d313h5q?t" title="Digg WordCampLA">Digg</a> WordCampLA?</h3>
<p>Link: <a rel="nofollow" href="http://digg.com/d313h5q?t" title="Digg WordCampLA">http://digg.com/d313h5q?t</a></p>
]]></content:encoded>
			<wfw:commentRss>http://wpcult.com/wordcamp-comes-to-los-angeles/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://wpcult.com/wordcamp-comes-to-los-angeles/</feedburner:origLink></item>
		<item>
		<title>Custom Login Plugin</title>
		<link>http://feedproxy.google.com/~r/WPCult/~3/5dlaN_6xxQg/</link>
		<comments>http://wpcult.com/custom-login-plugin/#comments</comments>
		<pubDate>Thu, 13 Aug 2009 16:24:15 +0000</pubDate>
		<dc:creator>Austin</dc:creator>
				<category><![CDATA[Plugins]]></category>
		<category><![CDATA[Custom Login]]></category>

		<guid isPermaLink="false">http://wpcult.com/?p=1513</guid>
		<description><![CDATA[Well, I&#8217;ve done it again. Created a plugin, and finally decided to release it to the public!
This one is for custom login design through your wp.login.php page.
Check it out and download it through the WordPress repository.
For a live preview, click here.
]]></description>
			<content:encoded><![CDATA[<p>Well, I&#8217;ve done it again. Created a plugin, and finally decided to release it to the public!</p>
<p>This one is for custom login design through your <code>wp.login.php</code> page.</p>
<p>Check it out and <a rel="nofollow" class="external" href="http://downloads.wordpress.org/plugin/custom-login.0.3.zip" title="Custom Login Plugin" rel="nofollow">download</a> it through the <a rel="nofollow" class="external" href="http://wordpress.org/extend/plugins/custom-login/" title="Custom Login Plugin" rel="nofollow">WordPress repository</a>.</p>
<p>For a live preview, click <a href="http://wpcult.com/wp-login.php">here</a>.</p>
<div id="attachment_1515" class="wp-caption alignnone" style="width: 963px"><a href="http://wpcult.com/wp-content/uploads/2009/08/custom-login-screenshot.png"><img src="http://wpcult.com/wp-content/uploads/2009/08/custom-login-screenshot.png" alt="Defualt admin screen" title="custom-login-screenshot" width="953" height="666" class="size-full wp-image-1515" /></a><p class="wp-caption-text">Defualt admin screen</p></div>
<div id="attachment_1514" class="wp-caption alignnone" style="width: 996px"><a href="http://wpcult.com/wp-content/uploads/2009/08/custom-login-admin-screenshot.png"><img src="http://wpcult.com/wp-content/uploads/2009/08/custom-login-admin-screenshot.png" alt="Custom Login admin settings" title="custom-login-admin-screenshot" width="986" height="900" class="size-full wp-image-1514" /></a><p class="wp-caption-text">Custom Login admin settings</p></div>
]]></content:encoded>
			<wfw:commentRss>http://wpcult.com/custom-login-plugin/feed/</wfw:commentRss>
		<slash:comments>45</slash:comments>
		<feedburner:origLink>http://wpcult.com/custom-login-plugin/</feedburner:origLink></item>
		<item>
		<title>Eventbrite Attendees Shortcode Plugin</title>
		<link>http://feedproxy.google.com/~r/WPCult/~3/J7VDNRwTSnw/</link>
		<comments>http://wpcult.com/eventbrite-attendees-shortcode-plugin/#comments</comments>
		<pubDate>Mon, 10 Aug 2009 17:45:29 +0000</pubDate>
		<dc:creator>Austin</dc:creator>
				<category><![CDATA[Plugins]]></category>
		<category><![CDATA[Eventbrite]]></category>
		<category><![CDATA[shortcodes]]></category>

		<guid isPermaLink="false">http://wpcult.com/?p=1499</guid>
		<description><![CDATA[Announcing my first &#8220;released&#8221; plugin. Very simple, as I&#8217;ve even gone over it in the last few published posts.

Use WordPress to print a RSS feed for Eventbrite attendees
Turn your RSS feed into a shortcode

But I decided to release it in plugin form!
Download the plugin from WordPress.com!
]]></description>
			<content:encoded><![CDATA[<p>Announcing my first &#8220;released&#8221; plugin. Very simple, as I&#8217;ve even gone over it in the last few published posts.</p>
<ol>
<li><a rel="nofollow" title="Use WordPress to print a RSS feed for Eventbrite attendees" rel="bookmark" href="../use-wordpress-to-print-a-rss-feed-for-eventbrite-attendees/">Use WordPress to print a RSS feed for Eventbrite attendees</a></li>
<li><a rel="nofollow" title="Turn your RSS feed into a shortcode" rel="bookmark" href="../turn-your-rss-feed-into-a-shortcode/">Turn your RSS feed into a shortcode</a></li>
</ol>
<p>But I decided to release it in plugin form!</p>
<h4><a rel="nofollow" href="http://wordpress.org/extend/plugins/eventbrite-attendees-shortcode/" title="Eventbrite Attendees Shortcode plugin">Download the plugin from WordPress.com</a>!</h4>
]]></content:encoded>
			<wfw:commentRss>http://wpcult.com/eventbrite-attendees-shortcode-plugin/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		<feedburner:origLink>http://wpcult.com/eventbrite-attendees-shortcode-plugin/</feedburner:origLink></item>
		<item>
		<title>Turn your RSS feed into a shortcode</title>
		<link>http://feedproxy.google.com/~r/WPCult/~3/SmVtFyZOmLY/</link>
		<comments>http://wpcult.com/turn-your-rss-feed-into-a-shortcode/#comments</comments>
		<pubDate>Tue, 04 Aug 2009 22:49:33 +0000</pubDate>
		<dc:creator>Austin</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[Eventbrite]]></category>
		<category><![CDATA[functions.php]]></category>
		<category><![CDATA[RSS]]></category>
		<category><![CDATA[shortcodes]]></category>

		<guid isPermaLink="false">http://wpcult.com/?p=1493</guid>
		<description><![CDATA[Last week I wrote how to &#8220;Use WordPress to print a RSS feed for Eventbrite attendees&#8220;. It was pretty popular, but then I found myself in a place that was more annoying. Trying to incorporate that into a blog post or page.
Without having to download a plugin that will allow PHP to be executed inside [...]]]></description>
			<content:encoded><![CDATA[<p>Last week I wrote how to &#8220;<a href="http://wpcult.com/use-wordpress-to-print-a-rss-feed-for-eventbrite-attendees/">Use WordPress to print a RSS feed for Eventbrite attendees</a>&#8220;. It was pretty popular, but then I found myself in a place that was more annoying. Trying to incorporate that into a blog post or page.</p>
<p>Without having to download a plugin that will allow <abbr title="PHP is a scripting language originally designed for producing dynamic web pages. It has evolved to include a command line interface capability and can be used in standalone graphical applications">PHP</abbr> to be executed inside a post, I would have to create a <a rel="nofollow" href="http://codex.wordpress.org/Templates" class="external" title="Template files">template</a> file and use that. Which is what I did, and it works just fine. But for some reason I forgot all about <a rel="nofollow" href="http://codex.wordpress.org/Shortcode_API" class="external" title="WordPress shortcodes">shortcodes</a>! With a shortcode, I could generate all the PHP in the functions file and then just call the shortcode when/where I want.</p>
<p>Okay, so lets show the completed PHP code:</p>
<pre>function attendee_feed_print_2009() {
 global $wpdb;
 include_once( ABSPATH . WPINC . '/rss.php' );
 $rss = fetch_rss( 'http://www.eventbrite.com/rss/event_list_attendees/384870157' );
 $items = array_slice( $rss-&gt;items, 0 );
 if ( empty( $items ) ) echo '&lt;ul style="list-style-type: none; list-style-image: none; list-style-position: outside;"&gt;&lt;li&gt;No items&lt;/li&gt;&lt;/ul&gt;';

 else

 foreach ( $items as $item ) : ?&gt;
 &lt;ul style="list-style-type:none; list-style-image:none; list-style-position:outside; margin-bottom: 0px"&gt;
 &lt;li&gt;&lt;!--&lt;strong&gt;&lt;?php echo $item[ 'title' ]; //User name ?&gt;&lt;/strong&gt;&lt;br /&gt;--&gt;

 &lt;?php echo $item[ 'content' ][ 'encoded' ]; ?&gt;

 &lt;hr style="border: 1px solid #ddd; margin-bottom: 8px" /&gt;
 &lt;/li&gt;
 &lt;/ul&gt;
 &lt;?php endforeach;
}
</pre>
<p>Now, this code has to be changed for it to work as a shortcode. We&#8217;ll have to return the function and not print/echo it.</p>
<p>I also wanted to be able to use multiple instances of the code with different feeds. To do so I had to create a argument to extract from the completed short code. I found a demo at: <a rel="nofollow" href="http://alexmansfield.com/wordpress/adding-custom-wordpress-shortcodes/comment-page-1/#comment-207" class="external" title="Alex Mansfield on shortcodes">Alex Mansfield&#8217;s post</a>. </p>
<p>Remember this:</p>
<pre>function attendee_feed_print_2009() {
 global $wpdb;
 include_once( ABSPATH . WPINC . '/rss.php' );
 $rss = fetch_rss( 'http://www.eventbrite.com/rss/event_list_attendees/384870157' );
</pre>
<p>We are going to update it to read as follows ( changes in bold ) :</p>
<pre>function attendee_feed_print_2009( <strong>$rss_nbr</strong> ) {
 global $wpdb;
 <strong>extract( shortcode_atts( array( 'rss' => ''), $rss_nbr ) );</strong>
 include_once( ABSPATH . WPINC . '/rss.php' );
 $rss = fetch_rss( <strong>$rss</strong> );
</pre>
<p>And the final code with the fields updated to return the arguments ( put into your functions.php file ( in between <code>&lt;?php</code> <code>?&gt;</code> ) ) : </p>
<pre>
function attendee_feed_print_2009( $rss_nbr ) {
  global $wpdb;
  extract( shortcode_atts( array( 'rss' =&gt; ''), $rss_nbr ) );
  include_once( ABSPATH . WPINC . '/rss.php' );
  $rss = fetch_rss( $rss );
  $items = array_slice( $rss-&gt;items, 0 );

  $rss_html = '&lt;div id=&quot;eventbrite-attendee-list&quot; style=&quot;clear:both;&quot;&gt;';

  if ( empty( $items ) ) $rss_html .= '&lt;ul style=&quot;list-style:none;&quot;&gt;&lt;li&gt;No attendees, yet.&lt;/li&gt;&lt;/ul&gt;';

  else

  foreach ( $items as $item ) :

  $rss_html .= '&lt;ul style=&quot;background:none; list-style:none; margin:0px&quot;&gt;';
  $rss_html .= '&lt;li style=&quot;background:none; list-style:none;&quot;&gt;';
  $rss_html .= $item[ 'content' ][ 'encoded' ];

  $rss_html .= '&lt;hr style=&quot;border: 1px solid #ddd; margin-bottom: 10px&quot; /&gt;';
  $rss_html .= '&lt;/li&gt;';
  $rss_html .= '&lt;/ul&gt;';

  endforeach;

  $rss_html .= '&lt;/div&gt;';

  return $rss_html;
  }
</pre>
<p>And lets not forget to add the shortcode function!</p>
<pre>
add_shortcode( 'eventbrite-attendees', 'attendee_feed_print_2009' );
</pre>
<p>Final outcome with look like this <code>`[eventbrite-attendees rss="http://your-rss-feed.com/"]`</code></p>
<div class="alert">
<h4>I&#8217;ve created this into a plugin!</h4>
<p><strong>Download the plugin: <a rel="nofollow" href="http://wordpress.org/extend/plugins/eventbrite-attendees-shortcode/">http://wordpress.org/extend/plugins/eventbrite-attendees-shortcode/</a></strong></div>
]]></content:encoded>
			<wfw:commentRss>http://wpcult.com/turn-your-rss-feed-into-a-shortcode/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		<feedburner:origLink>http://wpcult.com/turn-your-rss-feed-into-a-shortcode/</feedburner:origLink></item>
		<item>
		<title>Use WordPress to print a RSS feed for Eventbrite attendees</title>
		<link>http://feedproxy.google.com/~r/WPCult/~3/03cfFMEVRfw/</link>
		<comments>http://wpcult.com/use-wordpress-to-print-a-rss-feed-for-eventbrite-attendees/#comments</comments>
		<pubDate>Thu, 30 Jul 2009 00:55:29 +0000</pubDate>
		<dc:creator>Austin</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[Eventbrite]]></category>
		<category><![CDATA[functions.php]]></category>
		<category><![CDATA[RSS]]></category>

		<guid isPermaLink="false">http://wpcult.com/?p=1485</guid>
		<description><![CDATA[Today I was working on the WordCamp.LA site. I was trying to show the &#8220;attendee list&#8221; on the attendees page with out having to update the page every day.
Since I am using EventBrite to promote and sell ticket to the event I can collect info from there list. Evey one who purchases a ticket gets [...]]]></description>
			<content:encoded><![CDATA[<p>Today I was working on the <a rel="nofollow" class="external" title="WordCamp Los Angeles" href="http://wordcamp.la">WordCamp.LA</a> site. I was trying to show the &#8220;attendee list&#8221; on the <a rel="nofollow" href="http://wordcamp.la/attendees" class="external" title="WordCamp Los Angeles Atendees">attendees page</a> with out having to update the page every day.</p>
<p>Since I am using <a rel="nofollow" href="http://www.eventbrite.com/r/wordcampla">EventBrite</a> to promote and sell ticket to the event I can collect info from there list. Evey one who purchases a ticket gets put into the ticketed database which you can view with either <a rel="nofollow" title="RSS" href="http://en.wikipedia.org/wiki/RSS">RSS</a> or <a rel="nofollow" title="OPML" href="http://en.wikipedia.org/wiki/OPML">OPML</a>.</p>
<p>I chose to use RSS and the WordPress core file <code>rss.php</code>.</p>
<p>In the functions.php file I&#8217;ve added this function:</p>
<pre>function attendee_feed_print_2009() {
	global $wpdb;
		include_once( ABSPATH . WPINC . '/rss.php' );
		$rss = fetch_rss( 'http://www.eventbrite.com/rss/event_list_attendees/384870157' );
		$items = array_slice( $rss-&gt;items, 0 );</pre>
<p>Where I&#8217;ve named my function, and included the core RSS file from WordPress. I also told it to fetch the feed from the address (alternatively you can use any feed link you like).</p>
<pre>if ( empty( $items ) ) echo '&lt;ul style="list-style-type: none; list-style-image: none; list-style-position: outside;"&gt;&lt;li&gt;No items&lt;/li&gt;&lt;/ul&gt;';

 else

 foreach ( $items as $item ) : ?&gt;
 &lt;ul style="list-style-type:none; list-style-image:none; list-style-position:outside; margin-bottom: 0px"&gt;
 &lt;li&gt;&lt;!--&lt;strong&gt;&lt;?php echo $item[ 'title' ]; //User name ?&gt;&lt;/strong&gt;&lt;br /&gt;--&gt;

 &lt;?php echo $item[ 'content' ][ 'encoded' ]; ?&gt;

 &lt;hr style="border: 1px solid #ddd; margin-bottom: 8px" /&gt;
 &lt;/li&gt;
 &lt;/ul&gt;
 &lt;?php endforeach;
</pre>
<p>I then added the core style to fit this current feed.</p>
<p>And the final out come looks like this:</p>
<pre>function attendee_feed_print_2009() {
 global $wpdb;
 include_once( ABSPATH . WPINC . '/rss.php' );
 $rss = fetch_rss( 'http://www.eventbrite.com/rss/event_list_attendees/384870157' );
 $items = array_slice( $rss-&gt;items, 0 );
 if ( empty( $items ) ) echo '&lt;ul style="list-style-type: none; list-style-image: none; list-style-position: outside;"&gt;&lt;li&gt;No items&lt;/li&gt;&lt;/ul&gt;';

 else

 foreach ( $items as $item ) : ?&gt;
 &lt;ul style="list-style-type:none; list-style-image:none; list-style-position:outside; margin-bottom: 0px"&gt;
 &lt;li&gt;&lt;!--&lt;strong&gt;&lt;?php echo $item[ 'title' ]; //User name ?&gt;&lt;/strong&gt;&lt;br /&gt;--&gt;

 &lt;?php echo $item[ 'content' ][ 'encoded' ]; ?&gt;

 &lt;hr style="border: 1px solid #ddd; margin-bottom: 8px" /&gt;
 &lt;/li&gt;
 &lt;/ul&gt;
 &lt;?php endforeach;
}
</pre>
<p><strong>Don&#8217;t forget to wrap the code in <code>&lt;?php</code> <code>?&gt;</code></strong></p>
<p><small>I want to thank <a rel="nofollow" href="http://johnkolbert.com" title="John Kolbert" class="external">John Kolbert</a> for helping me with printing the <code>content:encoded</code> portion. <a rel="nofollow" href="http://pastebin.com/m1588fb30" class="external">http://pastebin.com/m1588fb30</a></small></p>
<p><strong>See it in action: <a rel="nofollow" href="http://wordcamp.la/attendees/">http://wordcamp.la/attendees/</a></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://wpcult.com/use-wordpress-to-print-a-rss-feed-for-eventbrite-attendees/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		<feedburner:origLink>http://wpcult.com/use-wordpress-to-print-a-rss-feed-for-eventbrite-attendees/</feedburner:origLink></item>
	</channel>
</rss>
