Custom Fields
Re-Envisioned
Support MB Relationships No Relationship posts displaying Reply To: No Relationship posts displaying

#10399

Anh Tran
Keymaster

Hi Doug,

It’s unexpected behaviour, but it has a reason. To make the query can get posts from any side of the connection, the plugin sets the post_type to any in the query. And WP_Query checks for exclude_from_search in this case. See this:

https://codex.wordpress.org/Class_Reference/WP_Query#Type_Parameters

‘any’ – retrieves any type except revisions and types with ‘exclude_from_search’ set to true.

I don’t know why WordPress sets that :(. It seems kind of weird to me.