Title: future post connected to future post
Last modified: August 21, 2016

---

# future post connected to future post

 *  [kemie](https://wordpress.org/support/users/kemie/)
 * (@kemie)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/future-post-connected-to-future-post/)
 * I have a connection between a post type of session to a post type of event. it
   looks like this:
 *     ```
       p2p_register_connection_type( array(
               'name' => 'speakers_to_event',
               'from' => 'speakers',
               'to' => 'events',
               'admin_column' => 'any',
               'from_query_vars' => array('post_status' => 'any'),
           ) );
       ```
   
 * And I’m displaying, on each session single page, the event it is associated with
   with this code:
 *     ```
       $fromevent = new WP_Query( array(
       				 						 					  'post_status' => array( 'publish', 'future'),
       				 						 					  'connected_type' => 'sessions_to_events',
       				 						 					  'connected_items' => get_queried_object_id(),
       				 						 					  'connected_direction' => 'any',
       				 						 					  'suppress_filters' => false,
       				 						 					) );
       				 						 					if ( $fromevent->have_posts() ) : ?>
       				 						 						<h5>Event</h5>
       				 						 						<?php while ( $fromevent->have_posts() ) : $fromevent->the_post(); ?>
       				 						 							<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
       				 						 						<?php endwhile;
       				 						 						 endif;?>
       ```
   
 * Which works ok, unless I have a future event with a future session, in which 
   it fails silently. I would have hoped the post_status parameter would do the 
   trick, but nothing.
 * Any clues?
 * [http://wordpress.org/plugins/posts-to-posts/](http://wordpress.org/plugins/posts-to-posts/)

The topic ‘future post connected to future post’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/posts-to-posts_7a8e9d.svg)
 * [Posts 2 Posts](https://wordpress.org/plugins/posts-to-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/posts-to-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/posts-to-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/posts-to-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/posts-to-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/posts-to-posts/reviews/)

## Tags

 * [posts2posts](https://wordpress.org/support/topic-tag/posts2posts/)
 * [status](https://wordpress.org/support/topic-tag/status/)

 * 0 replies
 * 1 participant
 * Last reply from: [kemie](https://wordpress.org/support/users/kemie/)
 * Last activity: [12 years, 9 months ago](https://wordpress.org/support/topic/future-post-connected-to-future-post/)
 * Status: not resolved