Support » Plugin: Posts 2 Posts » Filtering results to 'to' post type

Viewing 1 replies (of 1 total)
  • Is there any answer to my question?

    I managed to filter to one only gape. But I would like to have filter with one or more gpages..

    Can I do that?? Here is my connection type.

    function my_connection_types() {
    if ( !function_exists( ‘p2p_register_connection_type’ ) )
    return;
    p2p_register_connection_type( array(
    ‘name’ => ‘posts_to_gpages’,
    ‘from’ => ‘episode’,
    ‘to’ => ‘gpages’,
    ‘admin_column’ => true,
    ‘to_query_vars’ => array( ‘gpages’ => ‘xxxxx’ ),
    ‘sortable’ => ‘any’,
    ‘context’ => ‘advanced’, //doesn’t work
    ‘can_create_post’ => false,
    ) );

Viewing 1 replies (of 1 total)
  • The topic ‘Filtering results to 'to' post type’ is closed to new replies.