11-24-2020, 12:30 PM
|
|
Confirmed User
Industry Role:
Join Date: Nov 2020
Posts: 254
|
Quote:
Originally Posted by Smeklinis
In functions.php
Code:
// if(is_home()){
// $query->set( 'posts_per_page', 25 );
// }else{
// $query->set( 'posts_per_page', 50 );
// }
$query->set( 'posts_per_page', 50 );
// Change posts per page when ads in list are set.
if ( !is_home() && ( '' !== get_theme_mod( 'ads_home_inside_list', '' ) || '' !== get_theme_mod( 'ads_category_page_inside_list', '' ) || '' !== get_theme_mod( 'ads_tag_page_inside_list', '' ) || '' !== get_theme_mod( 'ads_actor_page_inside_list', '' ) || '' !== get_theme_mod( 'ads_search_result_page_inside_list', '' ) ) ) {
$query->set( 'posts_per_page', 46 );
}
|
thanks man
|
|
|