-
-
Save jonabaptistella/3dd57cb9567d065df7ade4936a2ec6cb to your computer and use it in GitHub Desktop.
Kirby: How to display the search query item and the count of results
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php if($results): ?> | |
<h1> | |
<?php echo $results->pagination->countItems() ?> | |
<?php if($results->pagination->countItems()=='1'): ?> result | |
<?php else: ?> results | |
<?php endif ?> | |
for <em><?php echo $search->query() ?></em> | |
</h1> | |
<?php endif ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment