This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Reply To: API SEARCH OTZEM

#38312
Ernest MarcinkoErnest Marcinko
Keymaster

Hi,

It looks like as if the posts_per_page variable is accounted for, and the results are trimmed.

Can you try this custom code:

add_filter("asp_query_args", "asp_query_args_change", 10, 2);
function asp_query_args_change($args, $search_id) {
	if ( wp_is_json_request() ) {
		$args['posts_per_page'] = 9999;
	}
	return $args;
}

Let me know if that changes anything.