Support

Account

Home Forums Backend Issues (wp-admin) Sort CPT entries by an ACF field Reply To: Sort CPT entries by an ACF field

  • You need to check that you are only applying it to the post type in question.

    
    if (empty($query->query_vars['post_type']) || $query->query_vars['post_type'] != 'your-post-type') {
      return;
    }