Hi, is there a way to limit the result of [pto search="keywords"]
to, for example, 10 results or what will be added in shortcode?
Thank you in advance
Hi,
Sure - if you edit pto.php and look for the following code at line 822:
$pto_q = $v;
...and REPLACE with:
global $pto_config_resultsPerPage; if (isset($atts["limit"])) $pto_config_resultsPerPage = $atts["limit"]; $pto_q = $v;
Then you can override the configured number of results (per page, the search shortcode just displays page 1) using e.g.
[pto search="keywords" limit="5"]
Cheers, David. -- PriceTapestry.com
Perfect, thank you!
©2006-2025 IAAI Software | Contact Us | Privacy Policy
Hi,
Sure - if you edit pto.php and look for the following code at line 822:
$pto_q = $v;
...and REPLACE with:
global $pto_config_resultsPerPage;
if (isset($atts["limit"])) $pto_config_resultsPerPage = $atts["limit"];
$pto_q = $v;
Then you can override the configured number of results (per page, the search shortcode just displays page 1) using e.g.
[pto search="keywords" limit="5"]
Cheers,
David.
--
PriceTapestry.com