• David Mondok

    (@davidmondok)


    Hi,

    it seems that blocked posts are excluded from search. Is it possible to override this behavior?

    cheers

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Chad Butler

    (@cbutlerjr)

    If the search question is related to in-site search, anything that is marked as “hidden” is going to be excluded for sure. Anything marked as hidden does not exist in a logged out state. Anything marked as blocked would potentially be able to be included in in-site searches, but it depends on what process you’re using for that.

    If you’re asking about search in general (i.e. Google), then keep in mind that a bot sees your site essentially the same as any other non-logged in user. So what a non-logged in user can see, a bot can see, and anything a non-logged in user cannot see, neither can a bot.

    Thread Starter David Mondok

    (@davidmondok)

    Hi,

    sorry about being so vague.

    I’m talking about in-site search via Relevanssi.

    Any post that is blocked with WP-Members doesn’t show up in the in-site search results, except for users that have the required permissions. We tried hooking into the filter wpmem_post__not_in and return an empty array if is_search() === true, but that didn’t work. Hope you have a solution and thanks in advance for your help.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Block posts excluded from search?’ is closed to new replies.