Support

Account

Home Forums Backend Issues (wp-admin) Not compatible with this code? Reply To: Not compatible with this code?

  • I would use something like this:

    
     if( isset($query->query_vars['post_type']) &&  $query->query_vars['post_type'] == 'acf' )
    {
    	return $query;
    }
    

    Tip: Always debug your params and variables to find out what you have to work with!