Forums

Posts 2 Posts
[resolved] Last fix broke something else (3 posts)

  1. randellbrantley
    Member
    Posted 1 year ago #

    Hello again.

    After the fix for the post_type => any problem something esle has broken.

    I have the code:

    // Find connected pages
    		$connected = new WP_Query( array(
    			'connected_type' => 'events_to_series',
    			'connected_items' => get_queried_object_id(),
    			'nopaging' => true,
    			'meta_key' => 'start_time_stamp',
    			'orderby' => 'meta_value_num',
    			'order' => 'ASC',
    			) );
    		//add the speaker connections to the query
    p2p_type( 'speaker_to_event' )->each_connected( $connected, array(), 'speakers' );

    The first part still works but the second part no longer updates the $connected query with speakers.

    Please help.

    http://wordpress.org/extend/plugins/posts-to-posts/

  2. scribu
    Member
    Plugin Author

    Posted 1 year ago #

    I see this is marked as "resolved", so I assume it's no longer a problem.

  3. randellbrantley
    Member
    Posted 1 year ago #

    The new version seemed to have fixed it.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic