I've scoured the interwebs but can't find a good working example or discussion of the filter `posts_distinct` I'm using Advanced Custom Fields but I don't _think_ that could be the problem. Anyway, nothing I try is working.

1. Is where I have my function call correct? Or does it go ahead of the WP_Query? 
2. Do I have to pass any arguments?

```
//functions.php
function search_distinct() { 
    return "DISTINCT"; 
}
add_filter('posts_distinct', 'search_distinct');

//archive.php
<?php
    $args = array(
       'post_type' => 'homily',
       'posts_per_page' => -1,
       'meta_key' => 'homilist',
       'orderby' => 'meta_value', 
       'order' => 'ASC'
    );
    $the_query = new WP_Query( $args );

    search_distinct(); //Correct?

    if ( $the_query->have_posts() ) {
       echo '<ul>';
           while ( $the_query->have_posts() ) {
              $the_query->the_post();
                    echo '<li>' .the_field('homilist') . '</li>';
                }
        echo '</ul>';
     }
     wp_reset_postdata(); ?>
```
sudo fgs