• Resolved salocined

    (@salocined)


    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)
Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Posts 2 Posts] Not displaying post connection’ is closed to new replies.