P2P_Connection_Type::each_connected( object|array $items, string|array $extra_qv = array(), string $prop_name = 'connected' )

Optimized inner query, after the outer query was executed.


Package


    Description Description

    Populates each of the outer querie’s $post objects with a ‘connected’ property, containing a list of connected posts


    Parameters Parameters

    $items

    (object|array) (Required) WP_Query instance or list of post objects

    $extra_qv

    (string|array) (Optional) Additional query vars for the inner query.

    Default value: array()

    $prop_name

    (string) (Optional) The name of the property used to store the list of connected items on each post object.

    Default value: 'connected'


    Premium WordPress Apps

    Top ↑

    User Contributed Notes User Contributed Notes

    You must log in before being able to contribute a note or feedback.