soflyy/oxygen-bugs-and-features

It is not possible to use multiple repeaters / easy posts with pagination.

Opened this issue · 2 comments

Issue
It is not possible to use multiple repeaters / easy posts with pagination.

Cause

  • The query var 'paged' collides when adding multiple repeaters / easy posts to the same view with pagination.
  • All repeaters / easy posts have 'format' => '?paged=%#%' set for their paginate_links( [...] )

To Reproduce

  1. Add two repeaters, each of which having more items than is defined in posts_per_page.
  2. Test the pagination links.

Fix
Provide some hook or mechanism to override the 'format' key of $pagination_args in dynamic-list.class.php and easy-posts.class.php.

Thanks

This would be a start:

$pagination_args = apply_filters('oxygen-pagination-args', $pagination_args);

This is how WP Query works if there are multiple queries on a page.

Moving to feature requests.