Osclass Support Forums
Osclass theme support => Veronika Osclass Responsive Theme => Topic started by: atba on January 26, 2019, 12:17:44 PM
-
Hello! Tell me how to change the number of user ads displayed in the public profile?
-
@atba
Osclass does not have such setting and it's impossible to change it.
-
in other templates there is an opportunity, but you do not ..... perfectly
-
There is no opportunity by default. You would have to create new query to do it... perfectly
-
Hello! Tell me how to change the number of user ads displayed in the public profile?
Add this code to the end of functions.php:
<?php
function cust_change_user_items_publicProfile_amount() {
$section = osc_get_osclass_section();
if (osc_get_osclass_location() == "user" && ($section == "items" || $section == "pub_profile")) Params::setParam('itemsPerPage', 24);
}
osc_add_hook('init', 'cust_change_user_items_publicProfile_amount');
?>
You can change the number in itemsPerPage...
-
@alexandromt
Thanks for tip ;)
-
Hello! Tell me how to change the number of user ads displayed in the public profile?
Add this code to the end of functions.php:
<?php
function cust_change_user_items_publicProfile_amount() {
$section = osc_get_osclass_section();
if (osc_get_osclass_location() == "user" && ($section == "items" || $section == "pub_profile")) Params::setParam('itemsPerPage', 24);
}
osc_add_hook('init', 'cust_change_user_items_publicProfile_amount');
?>
You can change the number in itemsPerPage...
We all appreciate!
-
Thank you !