title: Wordpress/php challenge
body: <p>Currently I have custom wordpress meta fields for a tv show blog that outputs "title" "number" "season" "plot" for each episode. Each episode is a table created that outputs the meta fields together...it is not a post nor page. What i'm trying to accomplish here is put the results in a tabbed slideshow that would look likre this <a href="http://beta.abc.go.com/shows/castle/episode-guide?category=Season+3" rel="nofollow">http://beta.abc.go.com/shows/castle/episode-guide?category=Season+3</a> .  The problems i ran into is that the seasons duplicate for example season 4 would output to be like 4,4,4,4 i was tring to merge them. and have only episodes from a particular season show up on that tab.</p>
  
  <pre><code>foreach ($data as $item) {
   &lt;h2&gt;&lt;?php echo $item['title'] ?&gt;&lt;/h2&gt;
   &lt;p&gt; Season &lt;?php echo $item['season'] ?&gt; | Episode &lt;?php echo $item['number'] ?&gt; | Aired &lt;?php echo $item['airdate'] ?&gt;&lt;/p&gt;
   &lt;p&gt;&lt;?php echo $item['plot'] ?&gt;&lt;/p&gt;"
  }
  </code></pre>
  
  <p>That is currently how the results are being outputted </p>