Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I'm using Posts 2 Posts with The Events Calendar plugin. I've made a connection for events and posts. This way the site can display the Event details and blog posts about the upcoming event under it.

I modified single-event.php to show the Event details and connected posts below it. I want to paginate the posts. I have this code to show related posts on my event:

$connected = new WP_Query( array(
  'connected_type' => 'posts_to_events',
  'connected_items' => get_queried_object(),
  'posts_per_page' => 5,
  'paged' => get_query_var( 'paged' ),
) );

Going to http://localhost/event/event-name/page/2 redirects me back to http://localhost/event/event-name/ so I can't see more than the most recent connected posts.

I know the single post template is only meant to show the current post, so I'm not sure what I should do. Hope someone can give me a clue. Thanks

share|improve this question
Hi @blogjunkie, did you get any solution for this? –  Mahmudur Jun 27 '13 at 2:47
Found out the answer in the Modern Tribe support forum: tri.be/support/forums/topic/posts-2-posts-connections –  blogjunkie Jun 27 '13 at 4:09
Hi @blogjunkie, thanks for link. But still I am not sure about how did you solve the pagination issue? –  Mahmudur Jun 27 '13 at 4:27
Just answered this on wordpress.stackexchange.com/questions/102784/… Vee –  Vee Jan 25 at 9:57

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.