pre_get_posts
, use the WP_Query->is_main_query()
method, not the is_main_query()
function. See https://developer.wordpress.org/reference/functions/is_main_query/. Please see Debugging in WordPress for more information. (This message was added in version 3.7.0.) in /home2/novindi5/public_html/wp-includes/functions.php on line 6085