Support

Account

Home › Forums › Front-end Issues › pre_get_posts function conflict with ACF Field › Reply To: pre_get_posts function conflict with ACF Field

  • Solved it with this so only main query is affected.

    if( !$query->is_main_query() ) return;