I had my site in the past configured to show the upcoming events of a specific category in a widget but with the update of The Events Calendar it stopped working.
In the past I was using this bit of code which output the upcoming events of a category (so it didn’t show every event in the calendar, just the ones in that category).
<ul> <?php $recent = new WP_Query("cat=11&showposts=5"); while($recent->have_posts()) : $recent->the_post();?> <li><a href="<?php the_permalink() ?>" rel="bookmark"> <?php the_title(); ?> </a></li> <?php endwhile; ?> </ul>
Now it no longer works. Does anyone know how I would achieve the same thing with the new version of The Events Calendar?
- The topic ‘[Plugin: The Events Calendar] Show Upcoming Events of Specific Category’ is closed to new replies.