<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Events Manager Plugin &#8211; Hack to display events by categories</title>
	<atom:link href="http://seoserpent.com/wordpress/events-manager-plugin/feed" rel="self" type="application/rss+xml" />
	<link>http://seoserpent.com/wordpress/events-manager-plugin</link>
	<description>A search marketing company.</description>
	<lastBuildDate>Thu, 02 Feb 2012 00:59:29 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Sarah</title>
		<link>http://seoserpent.com/wordpress/events-manager-plugin/comment-page-1#comment-8920</link>
		<dc:creator>Sarah</dc:creator>
		<pubDate>Wed, 25 Jan 2012 16:42:54 +0000</pubDate>
		<guid isPermaLink="false">http://seoserpent.com/?p=113#comment-8920</guid>
		<description>Answered my own question.  With Wordpress 3.1, you&#039;re able to pass an array of taxonomy names to wp_tag_cloud.  So to have regular post tags and Events Manager tags, do:   array(&#039;event-tags&#039;, &#039;post_tag&#039;), &#039;number&#039;=&gt;200, &#039;unit&#039;=&gt;&#039;px&#039;, &#039;smallest&#039;=&gt;9, &#039;largest&#039;=&gt;36)); ?&gt;</description>
		<content:encoded><![CDATA[<p>Answered my own question.  With WordPress 3.1, you&#8217;re able to pass an array of taxonomy names to wp_tag_cloud.  So to have regular post tags and Events Manager tags, do:   array(&#8216;event-tags&#8217;, &#8216;post_tag&#8217;), &#8216;number&#8217;=&gt;200, &#8216;unit&#8217;=&gt;&#8217;px&#8217;, &#8216;smallest&#8217;=&gt;9, &#8216;largest&#8217;=&gt;36)); ?&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sarah</title>
		<link>http://seoserpent.com/wordpress/events-manager-plugin/comment-page-1#comment-8901</link>
		<dc:creator>Sarah</dc:creator>
		<pubDate>Tue, 24 Jan 2012 22:58:46 +0000</pubDate>
		<guid isPermaLink="false">http://seoserpent.com/?p=113#comment-8901</guid>
		<description>Nice stuff, thanks.  Any idea how this could be done to display a list of event tags, or a tag cloud for event tags?</description>
		<content:encoded><![CDATA[<p>Nice stuff, thanks.  Any idea how this could be done to display a list of event tags, or a tag cloud for event tags?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marty Martin</title>
		<link>http://seoserpent.com/wordpress/events-manager-plugin/comment-page-1#comment-204</link>
		<dc:creator>Marty Martin</dc:creator>
		<pubDate>Fri, 17 Sep 2010 13:51:13 +0000</pubDate>
		<guid isPermaLink="false">http://seoserpent.com/?p=113#comment-204</guid>
		<description>For anyone who is interested, there&#039;s a new premium event management plugin available.  It looks pretty promising, check it out-  http://mear.is/espresso</description>
		<content:encoded><![CDATA[<p>For anyone who is interested, there&#8217;s a new premium event management plugin available.  It looks pretty promising, check it out-  <a href="http://mear.is/espresso" rel="nofollow">http://mear.is/espresso</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nicole</title>
		<link>http://seoserpent.com/wordpress/events-manager-plugin/comment-page-1#comment-154</link>
		<dc:creator>Nicole</dc:creator>
		<pubDate>Tue, 06 Jul 2010 22:07:07 +0000</pubDate>
		<guid isPermaLink="false">http://seoserpent.com/?p=113#comment-154</guid>
		<description>I made some changes that allow you to add category to the shortcode: 
[dbem_events_by_category category=1] 
 
And it shows &quot;future&quot; events (note the $scope variable). 
 
Here&#039;s the code from above modified: 
&lt;code&gt; 
define(&#039;DBEM_EVENTS_TBNAME&#039;, &#039;dbem_events&#039;); 
function dbem_display_categories($atts) { 
    global $wpdb; 
extract(shortcode_atts(array( 
&#039;category&#039; =&gt; &#039;category&#039;, 
), $atts)); 
 
    $categories_table = $wpdb-&gt;prefix.DBEM_CATEGORIES_TBNAME; 
    $events_table = $wpdb-&gt;prefix.DBEM_EVENTS_TBNAME; 
 
$timestamp = time (); 
$date_time_array = getdate ( $timestamp ); 
$hours = $date_time_array [&#039;hours&#039;]; 
$minutes = $date_time_array [&#039;minutes&#039;]; 
$seconds = $date_time_array [&#039;seconds&#039;]; 
$month = $date_time_array [&#039;mon&#039;]; 
$day = $date_time_array [&#039;mday&#039;]; 
$year = $date_time_array [&#039;year&#039;]; 
$today = strftime ( &#039;%Y-%m-%d&#039;, mktime ( $hours, $minutes, $seconds, $month, $day, $year ) ); 
 
$scope = &quot;(event_start_date &gt;= &#039;$today&#039; OR (event_end_date &gt;= &#039;$today&#039; AND event_end_date != &#039;0000-00-00&#039; AND event_end_date IS NOT NULL))&quot;; 
    $sql_categories = mysql_query(&quot;SELECT * FROM $categories_table WHERE category_id=$category ORDER BY category_id&quot;); 
    while($category = mysql_fetch_assoc($sql_categories)) { 
        extract($category); 
        $events = mysql_query(&quot;SELECT * FROM $events_table WHERE event_category_id = &#039;&quot;.mysql_real_escape_string($category_id).&quot;&#039; AND $scope ORDER BY event_start_date ASC&quot;); 
        $category_list .= &quot;&lt;div class=&quot;event&quot;&gt;&quot;; 
        $category_list .= &quot;&lt;ul class=&#039;cal-list&#039;&gt;&quot;; 
$num_rows = mysql_num_rows($events); 
if ($num_rows==0) { 
$category_list .= &quot;No events coming up.&quot;; 
} else { 
while($event = mysql_fetch_assoc($events)) { 
extract($event); 
$start_date = date(&#039;F j&#039;,strtotime($event_start_date)); 
$end_date = date(&#039;F j Y&#039;,strtotime($event_end_date)); 
$category_list .= &quot;&lt;li class=&#039;$category_name&#039;&gt;$start_date &lt;a href=&quot;&quot; rel=&quot;nofollow&quot;&gt;$event_name&lt;/a&gt; 
&quot;; 
} 
} 
$category_list .= &quot;&lt;/div&gt;&quot;; 
 
echo $category_list; 
} 
} 
add_shortcode(&#039;dbem_events_by_category&#039;, &#039;dbem_display_categories&#039;); 
&lt;/code&gt; 
My recent post &lt;a href=&quot;http://smackhappydesign.com/2010/03/in-this-economy-small-businesses-cant-afford-to-skimp-on-design/&quot; rel=&quot;nofollow&quot;&gt;In This Economy- Small Businesses Can&#8217;t Afford To Skimp On Design&lt;/a&gt; </description>
		<content:encoded><![CDATA[<p>I made some changes that allow you to add category to the shortcode:<br />
[dbem_events_by_category category=1] </p>
<p>And it shows &quot;future&quot; events (note the $scope variable). </p>
<p>Here&#39;s the code from above modified:<br />
&lt;code&gt;<br />
define(&#39;DBEM_EVENTS_TBNAME&#39;, &#39;dbem_events&#39;);<br />
function dbem_display_categories($atts) {<br />
    global $wpdb;<br />
extract(shortcode_atts(array(<br />
&#39;category&#39; =&gt; &#39;category&#39;,<br />
), $atts)); </p>
<p>    $categories_table = $wpdb-&gt;prefix.DBEM_CATEGORIES_TBNAME;<br />
    $events_table = $wpdb-&gt;prefix.DBEM_EVENTS_TBNAME; </p>
<p>$timestamp = time ();<br />
$date_time_array = getdate ( $timestamp );<br />
$hours = $date_time_array [&#39;hours&#39;];<br />
$minutes = $date_time_array [&#39;minutes&#39;];<br />
$seconds = $date_time_array [&#39;seconds&#39;];<br />
$month = $date_time_array [&#39;mon&#39;];<br />
$day = $date_time_array [&#39;mday&#39;];<br />
$year = $date_time_array [&#39;year&#39;];<br />
$today = strftime ( &#39;%Y-%m-%d&#39;, mktime ( $hours, $minutes, $seconds, $month, $day, $year ) ); </p>
<p>$scope = &quot;(event_start_date &gt;= &#39;$today&#39; OR (event_end_date &gt;= &#39;$today&#39; AND event_end_date != &#39;0000-00-00&#39; AND event_end_date IS NOT NULL))&quot;;<br />
    $sql_categories = mysql_query(&quot;SELECT * FROM $categories_table WHERE category_id=$category ORDER BY category_id&quot;);<br />
    while($category = mysql_fetch_assoc($sql_categories)) {<br />
        extract($category);<br />
        $events = mysql_query(&quot;SELECT * FROM $events_table WHERE event_category_id = &#39;&quot;.mysql_real_escape_string($category_id).&quot;&#39; AND $scope ORDER BY event_start_date ASC&quot;);<br />
        $category_list .= &quot;&lt;div class=&quot;event&quot;&gt;&quot;;<br />
        $category_list .= &quot;&lt;ul class=&#39;cal-list&#39;&gt;&quot;;<br />
$num_rows = mysql_num_rows($events);<br />
if ($num_rows==0) {<br />
$category_list .= &quot;No events coming up.&quot;;<br />
} else {<br />
while($event = mysql_fetch_assoc($events)) {<br />
extract($event);<br />
$start_date = date(&#39;F j&#39;,strtotime($event_start_date));<br />
$end_date = date(&#39;F j Y&#39;,strtotime($event_end_date));<br />
$category_list .= &quot;&lt;li class=&#39;$category_name&#39;&gt;$start_date <a href="" rel="nofollow">$event_name</a><br />
&quot;;<br />
}<br />
}<br />
$category_list .= &quot;&lt;/div&gt;&quot;; </p>
<p>echo $category_list;<br />
}<br />
}<br />
add_shortcode(&#39;dbem_events_by_category&#39;, &#39;dbem_display_categories&#39;);<br />
&lt;/code&gt;<br />
My recent post <a href="http://smackhappydesign.com/2010/03/in-this-economy-small-businesses-cant-afford-to-skimp-on-design/" rel="nofollow">In This Economy- Small Businesses Can&rsquo;t Afford To Skimp On Design</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mtboston</title>
		<link>http://seoserpent.com/wordpress/events-manager-plugin/comment-page-1#comment-151</link>
		<dc:creator>mtboston</dc:creator>
		<pubDate>Wed, 23 Jun 2010 16:23:55 +0000</pubDate>
		<guid isPermaLink="false">http://seoserpent.com/?p=113#comment-151</guid>
		<description>This is great! but I have the same issues as some of the above! 
1. how do i show only one category 
2. show only future events 
 
thanks for ANY HELP! </description>
		<content:encoded><![CDATA[<p>This is great! but I have the same issues as some of the above!<br />
1. how do i show only one category<br />
2. show only future events </p>
<p>thanks for ANY HELP!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul</title>
		<link>http://seoserpent.com/wordpress/events-manager-plugin/comment-page-1#comment-145</link>
		<dc:creator>Paul</dc:creator>
		<pubDate>Thu, 20 May 2010 17:01:33 +0000</pubDate>
		<guid isPermaLink="false">http://seoserpent.com/?p=113#comment-145</guid>
		<description>Hi guys - back again. 
Anyone worked out how to display events based on custom attributes? For example, if I have a custom attribute of &quot;lights off&quot; and a value of &quot;yes&quot; stored for that attribute, how can I use the [events_list] shortcode to only show events where the attribute is &quot;yes&quot; ? Any takers? </description>
		<content:encoded><![CDATA[<p>Hi guys &#8211; back again.<br />
Anyone worked out how to display events based on custom attributes? For example, if I have a custom attribute of &quot;lights off&quot; and a value of &quot;yes&quot; stored for that attribute, how can I use the [events_list] shortcode to only show events where the attribute is &quot;yes&quot; ? Any takers?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Carey</title>
		<link>http://seoserpent.com/wordpress/events-manager-plugin/comment-page-1#comment-98</link>
		<dc:creator>Carey</dc:creator>
		<pubDate>Tue, 09 Mar 2010 18:59:24 +0000</pubDate>
		<guid isPermaLink="false">http://seoserpent.com/?p=113#comment-98</guid>
		<description>I&#039;m wondering if there is a way to add the scope for &quot;future&quot; events, because what I get right now is ALL events. I tried using this: [events_list limit=50 category=2 scope=future] 
but, it did not work... </description>
		<content:encoded><![CDATA[<p>I&#039;m wondering if there is a way to add the scope for &quot;future&quot; events, because what I get right now is ALL events. I tried using this: [events_list limit=50 category=2 scope=future]<br />
but, it did not work&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michiko Wendel</title>
		<link>http://seoserpent.com/wordpress/events-manager-plugin/comment-page-1#comment-94</link>
		<dc:creator>Michiko Wendel</dc:creator>
		<pubDate>Sun, 07 Mar 2010 06:41:40 +0000</pubDate>
		<guid isPermaLink="false">http://seoserpent.com/?p=113#comment-94</guid>
		<description>That was brilliant.</description>
		<content:encoded><![CDATA[<p>That was brilliant.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: croakingtoad</title>
		<link>http://seoserpent.com/wordpress/events-manager-plugin/comment-page-1#comment-81</link>
		<dc:creator>croakingtoad</dc:creator>
		<pubDate>Wed, 24 Feb 2010 12:49:37 +0000</pubDate>
		<guid isPermaLink="false">http://seoserpent.com/?p=113#comment-81</guid>
		<description>This is one way Event Calendar displays events on a website: 
 
&lt;a href=&quot;http:\/\/www.wilderness-adventure.com\/camp-dates\/&quot; target=&quot;_blank&quot;&gt;Wilderness Adventure Camp Dates&lt;/a&gt; </description>
		<content:encoded><![CDATA[<p>This is one way Event Calendar displays events on a website: </p>
<p><a href="http:\/\/www.wilderness-adventure.com\/camp-dates\/" target="_blank">Wilderness Adventure Camp Dates</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: @mikeyleung</title>
		<link>http://seoserpent.com/wordpress/events-manager-plugin/comment-page-1#comment-80</link>
		<dc:creator>@mikeyleung</dc:creator>
		<pubDate>Wed, 24 Feb 2010 09:11:42 +0000</pubDate>
		<guid isPermaLink="false">http://seoserpent.com/?p=113#comment-80</guid>
		<description>Note that the [events_list] shortcode must be in small caps.  </description>
		<content:encoded><![CDATA[<p>Note that the [events_list] shortcode must be in small caps.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

