Limit search result using Search Block
Permalink 1 user found helpfulI would like to limit my result to 10 or any other number per page.
I keep on following the code but I cant find the limit on queries.
Is there an easier way to do this.
Thanks.
This website stores cookies on your computer. These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media. To find out more about the cookies we use, see our Privacy Policy.
...to here:
(you'll probably need to create the /blocks/search/ directory first).
Now edit that new copy of the file and find this line of code (it's down near the bottom):
...and directly ABOVE that line add this new line of code:
You can change that number 10 to whatever you want.