Forum

Thread tagged as: Question, Events

Event Listing Previous and Next Month

Is it possible to use the Previous and next month navigation for Events Listing. In my page I have

<?php
perch_events_calendar(array(
    'past-events'        => true,
    'calendar-template'  => 'events/calendar/calendar.html',
    'blank-day-template' => 'events/calendar/blank-day.html',
    'event-day-template' => 'events/calendar/event-day1.html'
));
?>

And Currently for the listing, I have just the next month listed as

        <?php 
   $_GET['d']  = date('Y-m', strtotime('+1 MONTH'));
                perch_events_listing(array(     

                    'sort'       => 'eventDateTime',
                    'sort-order' => 'desc',

                ));
            ?>

<?php 
   $_GET['d']  = date('Y-m', strtotime('+2 MONTH'));
                perch_events_listing(array(     

                    'sort'       => 'eventDateTime',
                    'sort-order' => 'desc',

                ));
            ?>


I need to be able to click back and forward though the listing in the same way as the monthly calendar view.

Is this possible?

Richard Lowe

Richard Lowe 0 points

  • 5 years ago
Richard Lowe

Richard Lowe 0 points
Registered Developer

The answer is yes you can!