Title: orb2's Replies | WordPress.org

---

# orb2

  [  ](https://wordpress.org/support/users/orb2/)

 *   [Profile](https://wordpress.org/support/users/orb2/)
 *   [Topics Started](https://wordpress.org/support/users/orb2/topics/)
 *   [Replies Created](https://wordpress.org/support/users/orb2/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/orb2/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/orb2/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/orb2/engagements/)
 *   [Favorites](https://wordpress.org/support/users/orb2/favorites/)

 Search replies:

## Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Relevanssi - A Better Search] Why does my WP_Query return fewer results than a direct search query?](https://wordpress.org/support/topic/why-does-my-wp_query-return-fewer-results-than-a-direct-search-query/)
 *  Thread Starter [orb2](https://wordpress.org/support/users/orb2/)
 * (@orb2)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/why-does-my-wp_query-return-fewer-results-than-a-direct-search-query/#post-17252194)
 * Thank you for your help.
   I found the problem, in the arguments I need to remove‘post_status’
   => ‘publish’,
    -  This reply was modified 2 years, 6 months ago by [orb2](https://wordpress.org/support/users/orb2/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Relevanssi - A Better Search] Why does my WP_Query return fewer results than a direct search query?](https://wordpress.org/support/topic/why-does-my-wp_query-return-fewer-results-than-a-direct-search-query/)
 *  Thread Starter [orb2](https://wordpress.org/support/users/orb2/)
 * (@orb2)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/why-does-my-wp_query-return-fewer-results-than-a-direct-search-query/#post-17252187)
 * wp-content/plugins/relevanssi/lib/search.php
   I found the code:
 *     ```wp-block-code
       $post_ok = TRUE;
       /**
       * Filters whether the post can be shown to the user.
       *
       * This filter hook is used for 'relevanssi_default_post_ok' filter
       * function which handles private posts and some membership plugins.
       * If you want to add support for more membership plugins, this is
       * the filter hook to use.
       *
       * @param boolean True, if the post can be shown to the current user.
       * @param int     The post ID.
       */
       $post_ok = apply_filters( 'relevanssi_post_ok', $post_ok, $match->doc );
       if ( $post_ok ) {
       ```
   
 * And I commented on the line “$post_ok = apply_filters( … )”.
 * The results have not changed. On the search page, I see 1 more post than the 
   custom query.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Relevanssi - A Better Search] Why does my WP_Query return fewer results than a direct search query?](https://wordpress.org/support/topic/why-does-my-wp_query-return-fewer-results-than-a-direct-search-query/)
 *  Thread Starter [orb2](https://wordpress.org/support/users/orb2/)
 * (@orb2)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/why-does-my-wp_query-return-fewer-results-than-a-direct-search-query/#post-17249996)
 * Runs the admin script with full rights. I can see this post when I open it. On
   the search page, this post is found and opened.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Relevanssi - A Better Search] Why does my WP_Query return fewer results than a direct search query?](https://wordpress.org/support/topic/why-does-my-wp_query-return-fewer-results-than-a-direct-search-query/)
 *  Thread Starter [orb2](https://wordpress.org/support/users/orb2/)
 * (@orb2)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/why-does-my-wp_query-return-fewer-results-than-a-direct-search-query/#post-17249757)
 * I added the ‘relevanssi’ => TRUE, parameter, but there is still 1 post missing.
 * The post that is missing matters: Visibility: Private

Viewing 4 replies - 1 through 4 (of 4 total)