orb2
Forum Replies Created
Viewing 4 replies - 1 through 4 (of 4 total)
-
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.
wp-content/plugins/relevanssi/lib/search.php
I found the 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.
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.
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)