• <?php
           p2p_type( 'cliente_to_factura' )->each_connected( $wp_query );
           while ( $wp_query->have_posts() ) : $wp_query->the_post(); ?>
    
           <?php the_ID(); ?>
           <?php
                foreach ( $post->connected as $post ) : setup_postdata( $post );
                     the_title();
                endforeach;
           wp_reset_postdata(); ?>
    
           <?php the_title(); ?>
    
           <?php wp_reset_postdata(); ?>
    
           <?php endwhile; ?>

    How to add the pagination?

    https://www.ads-software.com/plugins/posts-to-posts/

  • The topic ‘each_connected() and pagination’ is closed to new replies.