Title: [Plugin: Posts 2 Posts] draft/other statuses in shortcode?
Last modified: August 20, 2016

---

# [Plugin: Posts 2 Posts] draft/other statuses in shortcode?

 *  Resolved [econofast](https://wordpress.org/support/users/econofast/)
 * (@econofast)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-draftother-statuses-in-shortcode/)
 * Is there any way to have the p2p_connected shortcode be able to show posts that
   are marked “draft”? I am building an event site, and would love to have a private
   page for admins to see what the full agenda would look like if all sessions were
   published.
 * [http://wordpress.org/extend/plugins/posts-to-posts/](http://wordpress.org/extend/plugins/posts-to-posts/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [scribu](https://wordpress.org/support/users/scribu/)
 * (@scribu)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-draftother-statuses-in-shortcode/#post-2982385)
 * I don’t think that’s a good idea.
 * You can query for connected draft posts yourself, in PHP, as described here:
 * [https://github.com/scribu/wp-posts-to-posts/wiki/Basic-usage](https://github.com/scribu/wp-posts-to-posts/wiki/Basic-usage)
 *  Thread Starter [econofast](https://wordpress.org/support/users/econofast/)
 * (@econofast)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-draftother-statuses-in-shortcode/#post-2982386)
 * You’re probably right. It’s probably a very low use case scenario. I did end 
   up doing it via PHP, and I think anyone who has a similar application can probably
   handle it the same way.
    Thanks for considering it though. I continue to be amazed
   by how many times I come across your postings all over the web to solve my issues!
 *  Thread Starter [econofast](https://wordpress.org/support/users/econofast/)
 * (@econofast)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-draftother-statuses-in-shortcode/#post-2982403)
 * Okeydoke, I have this partly working. I can show all of my sessions, and the 
   speakers that are connected will show up, whether live or draft, but ONLY on 
   published sessions.
    How can I pull up the speakers for draft sessions? Right
   now, my each_connected looks like: `p2p_type( 'sessions_to_speakers' )->each_connected(
   $post->sessions, array('post_status' => 'any'), 'speakers' );`

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘[Plugin: Posts 2 Posts] draft/other statuses in shortcode?’ 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/)

 * 3 replies
 * 2 participants
 * Last reply from: [econofast](https://wordpress.org/support/users/econofast/)
 * Last activity: [13 years, 6 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-draftother-statuses-in-shortcode/#post-2982403)
 * Status: resolved