View Single Post
Old 11-24-2020, 12:30 PM  
SeoDealer
Confirmed User
 
SeoDealer's Avatar
 
Industry Role:
Join Date: Nov 2020
Posts: 254

Quote:
Originally Posted by Smeklinis View Post
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
SeoDealer is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote