We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'each_connected' was implemented in older versions, but was removed in favor of p2p_type( ... )->each_connected().
p2p_type( ... )->each_connected()
Since we can now query multiple connection types, each_connected() has become inadequate.
Here is a new proposed syntax:
<?php $movies = new WP_Query( array( 'post_type' => 'movie', 'each_connected:actors' => array( 'connected_type' => 'actors_to_movies', 'genre' => 'comedy', ) 'each_connected:studios' => array( 'connected_type' => 'movies_to_studios', ) ) );
The drawbacks are the same as in the previous incarnation:
The text was updated successfully, but these errors were encountered:
Going to go with less magic: #348.
Sorry, something went wrong.
No branches or pull requests
'each_connected' was implemented in older versions, but was removed in favor of
p2p_type( ... )->each_connected()
.Since we can now query multiple connection types, each_connected() has become inadequate.
Here is a new proposed syntax:
The drawbacks are the same as in the previous incarnation:
The text was updated successfully, but these errors were encountered: