[Resolved] Pagination breaks when ai1ec_event posts are included in query.
Basically I am trying to load both recent blog posts and ai1ec_event posts into one blog (news and events) page. It appears to show them all when I use wp_query and grab the event posts along with the regular posts.
If I disable pagination (increase limit) they all display fine, but as soon as I enable pagination I get 404 Not Found when I try to access page 3, sometimes I can get page 2 to work. You would think if pagination was not working it would 404 on page 2 every time so I am completely confused.
I have tried all the solutions for custom posts types available on the internet, and have found one other person with the identical bug I have and ai1ec. I am hoping someone can offer a solution or explain why this is happening.
Here is the query I am trying.
$wp_query = new WP_Query(array('post_type' => array('post', 'ai1ec_event'), 'paged' => $paged)); // Proceed with the loop.
- The topic ‘[Resolved] Pagination breaks when ai1ec_event posts are included in query.’ is closed to new replies.