Forum

Thread tagged as: Question, Problem, Events

Events Filter by Category

Hi,

When I create a link to a search filter by using this url:

/training-events/event-search.php?cat=Bedfordshire

I get no return on the search resluts if the Event is not this month.

In the event-search.php I am using the following to display events:

<?php $opts = array(
        'past-events'=>true,
        'category' => perch_get('cat') );
        perch_events_listing($opts); ?> 

I must be missing something here, is perch_events_listing the wrong thing to use here? I want to list all events from now going forwards in the specified category.

Thanks

Adam

Adam Menczykowski

Adam Menczykowski 1 points

  • 7 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

I think you want to use perch_events_custom() for that.

That did it, thanks very much.