Forum

Thread tagged as: Question, Problem

Start not working on collections

Can you see any issues with this code guys?

                perch_collection('News', [
                    'filter'                => 'news_date',
                    'match'                 => 'lte',
                    'value'                 => date('Y-m-d H:i:s'),
                    'sort'                  =>'news_date',
                    'sort-order'            =>'DESC',
                    'start'                 => 20,
                    'paginate'              => false,
                ]);

I can't get the start to work. Just starts at the beginning...

Terry Upton

Terry Upton 0 points

  • 5 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Try removing the paginate option completely.