hmmm… I dunno what you’d have to do to the guts of the plugin to limit it to 1 month, BUT as they say – there are more than 1 ways to skin a cat.
The only thing I could suggest is making it seem to the visitor that the calendar only loads for August – only the most nosey/savvy of visitors would notice anything. The edits below try to keep the core functionality of the plugin by making the least possible amount of changes to the code (and clearly commenting those edits that are made), so that should u change your mind you can go back to full displays without a problem.
Step 1. Use the sidebar widget. It displays upcoming events and links to them, so if you only have events for August, only those events will show.
Step 2. Edit /wp-content/plugins/the-event-calendar/event-list-widget.class.php
on lines 80 and 81:
Change
/* Display link to all events */
echo '<div class="dig-in"><a href="' . $event_url . '">' . __('View All Events', $this->pluginDomain ) . '</a></div>';
To either this (if using pretty URLs)
/* Display link to all events */
/* echo '<div class="dig-in"><a href="' . $event_url . '">' . __('View All Events', $this->pluginDomain ) . '</a></div>'; */
/* My edit to display August only STARTS below */
echo '<div class="dig-in"><a href="https://[your-domain-here]/category/events/2010-08">' . __('View All Events', $this->pluginDomain ) . '</a></div>';
/* My edit to display August only ENDS above */
Or this (if NOT using pretty URLs)
/* Display link to all events */
/* echo '<div class="dig-in"><a href="' . $event_url . '">' . __('View All Events', $this->pluginDomain ) . '</a></div>'; */
/* My edit to display August only STARTS below */
echo '<div class="dig-in"><a href="https://[your-domain-here]/category/events/&eventDisplay=month&eventDate=2010-08">' . __('View All Events', $this->pluginDomain ) . '</a></div>';
/* My edit to display August only ENDS above */
Step 3. Remove all calendar based navigation by adding the following to your CSS (/wp-content/themes/events/events.css
):
.tec-month-nav {
display: none;
}
Step 4. If there are ANY links to the “Events” category in your theme – hide them or get of them. If you need to hide these links while displaying other categories – I suggest you look into plugins like SimplyExclude and Advanced Category Excluder
That should do it.
Explanation:
>> Step 1 changes nothing really – just ushers your visitors to using the calendar options you’ve customized
>> Step 2 hard-codes the “View All Events” link that appears at the bottom of the widget to August of whatever year you set (2010 in the example above)
>> Step 3 uses CSS to hide the code that allows a visitor to navigate the calendar – forcing them to edit the URI in the browser’s address bar if they want to see anything BUT August of the year you set (meaning you’ll have to adjust the year set in Step 2 at the end of the event every year).