Title: [Plugin: Posts 2 Posts] Not displaying post connection
Last modified: August 19, 2016

---

# [Plugin: Posts 2 Posts] Not displaying post connection

 *  Resolved [salocined](https://wordpress.org/support/users/salocined/)
 * (@salocined)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-not-displaying-post-conenction/)
 * Help on this one,
    The connection exist but no data is displayed. I am using 
   a similar code down the page and the data displays fine. I have changed the variable
   $the_query without results.
 *     ```
       <?
       global $post;
         $the_query = new WP_Query( array(
         'suppress_filters' => false,
         'post_type' => 'photographer',
         'type' => 'take-photo',
          'showposts' => 1,
          'connected' => $post->ID) );
   
          if($the_query->have_posts()) :
           while ($the_query->have_posts()) : $the_query->the_post();
       ?>
            <a href="<?php get_permalink($post->ID);?>"><?php $post->post_title;?></a> 
                         <?php  endwhile; ?>
       <? endif;?>
       ```
   

Viewing 1 replies (of 1 total)

 *  Thread Starter [salocined](https://wordpress.org/support/users/salocined/)
 * (@salocined)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-not-displaying-post-conenction/#post-1873977)
 * the bottom post fixed it
    [http://wordpress.org/support/topic/plugin-posts-2-posts-function-to-display-related-posts-on-frontend?replies=9](http://wordpress.org/support/topic/plugin-posts-2-posts-function-to-display-related-posts-on-frontend?replies=9)

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: Posts 2 Posts] Not displaying post connection’ 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/)

 * 1 reply
 * 1 participant
 * Last reply from: [salocined](https://wordpress.org/support/users/salocined/)
 * Last activity: [15 years, 4 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-not-displaying-post-conenction/#post-1873977)
 * Status: resolved