-
Notifications
You must be signed in to change notification settings - Fork 261
Query vars
scribu edited this page Oct 15, 2011
·
18 revisions
The P2P_Connection_Type class doesn't query the database directly. Instead, it passes custom query vars to WP_Query, which are then handled by the P2P_Query class:
- 'connected': 'any', post id or array of post ids
- 'connected_direction': 'any', 'from' or 'to'
- 'connected_meta':
array( $meta_key => $meta_value )
ormeta_query
syntax
- 'connected_orderby': $meta_key
- 'connected_order': 'asc' or 'desc'
- 'connected_order_num': true or false