Paginate search results after combining sections in Craft 3 I have installed the Calendar plugin and I'd like to search across event entries from this plugin and from channel/section entries across the base Craft 3 site.

However, I am getting the usual Limit-Array error when trying to paginate the results.

Is there a method for paginating multiple search results in Craft 3? I haven't come across a way to do this in any current questions or Craft 3 Docs.
I doubt this is possible in Twig by default because you have two different Element types, thus you'll need to different instances of the ElementQuery to populate all models correctly. I think you'll need to create your own pagination. That being said Element::find()-&gt;all() will throw an error 


  Cannot instantiate abstract class craft\base\Element


Thus you'll have to Query for your elements in your own

// get all possible element ids
$sectionId = X;
$query = (new Query())
    -&gt;select('elements.id')
    -&gt;from('{{%elements}}')
    -&gt;leftJoin('{{%elements_sites}}', 'elements_sites.elementId = elements.id')
    -&gt;leftJoin('{{%entries}}', 'entries.id = elements.id')
    -&gt;where(new OrCondition([
        ['=', 'entries.sectionId', $sectionId], &lt;-- your section Id
        ['is', 'entries.sectionId', null],
    ]))
    -&gt;andWhere(new OrCondition([
        ['=', 'elements.type', \craft\elements\Entry::class],
        ['=', 'elements.type', YourCalenderClassComesHere],
    ]))
    -&gt;andWhere(['elements_sites.siteId' =&gt; 1])
    -&gt;limit(10)
    -&gt;offset(0)
    -&gt;column();

// populate entry by Id
foreach ($query as $elementId){
    $element = Craft::$app-&gt;getElements()-&gt;getElementById($elementId);
}