Link to home
Start Free TrialLog in
Avatar of tymolhook
tymolhook

asked on

wordpress the events calendar

I'm using the events calendar plugin here: http://wordpress.org/extend/plugins/the-events-calendar/ I'm trying to display the upcoming and past events in the sidebar. The plugins notes says this about displaying upcoming events "Events/Upcoming &cat=&eventDisplay=upcoming" I'm not sure how to implement this.
Avatar of Ryan Smith
Ryan Smith
Flag of United States of America image

did you check your widgets?  there probably is a widge to drag to your side bar.  The url they give is just for sorting the page if your linking to it.
Avatar of tymolhook
tymolhook

ASKER

right now when I click the widgets tab it gives me the following message "he theme you are currently using isn’t widget-aware, meaning that it has no sidebars that you are able to change". I'm using a custom theme I built. Should I be using widgets? I'm really new to wordpress, so I'm not too sure how to enable widgets or what they do.

Currently I have the following php that shows all events, but I want it separated into upcoming events and past events. Can I just update my php to query only past or future events?

      <ul>
            <?php $my_query2 = new WP_Query('category_name=events&posts_per_page=5'); ?>
<?php while ($my_query2->have_posts()) : $my_query2->the_post(); ?>
<li><?php the_date(); ?> <a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></li>
<?php endwhile; ?>
      </ul>
      
<ul>
		<?php $my_query2 = new WP_Query('category_name=events&posts_per_page=5'); ?>
<?php while ($my_query2->have_posts()) : $my_query2->the_post(); ?>
<li><?php the_date(); ?> <a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></li>
<?php endwhile; ?>
	</ul>

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of jeremyjared74
jeremyjared74
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial