I have different post types people, news, publication, events. People post type has one to many relationship with news post type (slug name: people-news, 1 People can be assigned to one News -> Infinite News can be assigned to one People). People post type has many to many relationship with events post type (slug name: speakers, Infinite People can be assigned to one Event -> Infinite Events can be assigned to one People ). People post type has many to one relationship with publication post type (slug name: writer, 1 Publication can be assigned to one People -> Infinite People can be assigned to one Publication).
I was using this code to do that:
$peoplePostQueryArr = array(
'post_type' => ['news', 'events', 'publication'],
'posts_per_page'=> 4,
'toolset_relationships' => [
It's not possible to specify using 'OR' as an alternative.
If you want to query multiple relationships in that way then it would be necessary to set up separate queries for each relationship, and then combine the results.
The topic ‘[Closed] Get all related posts which has multiple relationship with multiple post types’ is closed to new replies.