Title: [Plugin: Posts 2 Posts] Linking to Displayed Posts
Last modified: August 20, 2016

---

# [Plugin: Posts 2 Posts] Linking to Displayed Posts

 *  Resolved [johnnyspade](https://wordpress.org/support/users/johnnyspade/)
 * (@johnnyspade)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-linking-to-displayed-posts/)
 * Nice plugin. I was able to get this working and can make the connections required
   to list related posts. What I’m wondering is how to list those posts with a link
   to those posts? Any info appreciated.
 * [http://wordpress.org/extend/plugins/posts-to-posts/](http://wordpress.org/extend/plugins/posts-to-posts/)

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

 *  Plugin Author [scribu](https://wordpress.org/support/users/scribu/)
 * (@scribu)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-linking-to-displayed-posts/#post-2296013)
 * You can use `p2p_list_posts( $posts );` or do a manual loop:
 * [https://github.com/scribu/wp-posts-to-posts/wiki/Basic-usage](https://github.com/scribu/wp-posts-to-posts/wiki/Basic-usage)
 *  Thread Starter [johnnyspade](https://wordpress.org/support/users/johnnyspade/)
 * (@johnnyspade)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-linking-to-displayed-posts/#post-2296344)
 * Yes, that works. Thanks for that. As a follow up … is there a way to show that“
   related posts” heading used in the basic usage example ONLY if there’s resources
   listed? I’m having trouble with the conditional.
 *  Plugin Author [scribu](https://wordpress.org/support/users/scribu/)
 * (@scribu)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-linking-to-displayed-posts/#post-2296350)
 *     ```
       if ( $connected->have_posts() ) {
         echo '<p>Related posts:</p>';
   
         p2p_list_posts( $connected );
       }
       ```
   
 *  [njc](https://wordpress.org/support/users/njc/)
 * (@njc)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-linking-to-displayed-posts/#post-2296389)
 * Is it oke to remove the p tags?
 *  Plugin Author [scribu](https://wordpress.org/support/users/scribu/)
 * (@scribu)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-linking-to-displayed-posts/#post-2296390)
 * Sure. Also, you can replace them with h3 tags etc.
 *  [njc](https://wordpress.org/support/users/njc/)
 * (@njc)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-linking-to-displayed-posts/#post-2296391)
 * Thanks, just tried it and it works very well.

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

The topic ‘[Plugin: Posts 2 Posts] Linking to Displayed Posts’ 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/)

 * 6 replies
 * 3 participants
 * Last reply from: [njc](https://wordpress.org/support/users/njc/)
 * Last activity: [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-linking-to-displayed-posts/#post-2296391)
 * Status: resolved