Pagination problem
-
I’ve an edge case for MLA pagination, when it’s being rendered from within a 2nd level lightbox (Featherlight JS opening over WooCommerce quickview), and MLA isn’t constructing the proper paging links.
My MLA paginator looks like this:
[mla_gallery attachment_category="prints-a3" posts_per_page=4 mla_output="paginate_links,prev_next"]The output it ordinarily produces and works looks like this:
<span class="page-numbers current">1</span> <a class="page-numbers" href="http://mydomain.com/artwork/a4-mermaid/?mla_paginate_current=2" tabindex="-1">2</a> <a class="page-numbers" href="http://mydomain.com/artwork/a4-mermaid/?mla_paginate_current=3" tabindex="-1">3</a> <a class="page-numbers" href="http://mydomain.com/artwork/a4-mermaid/?mla_paginate_current=4" tabindex="-1">4</a> <a class="next page-numbers" href="http://mydomain.com/artwork/a4-mermaid/?mla_paginate_current=2" tabindex="-1">Next »</a>However, when opened in a multi-layered context (i.e Featherlight over Quickview), MLA pagination constructs quite different links that are not suitable for further processing:
<span class="page-numbers current">1</span> <a class="page-numbers" href="http://mydomain.com/wp-admin/admin-ajax.php?mla_paginate_current=2" tabindex="-1">2</a> <a class="page-numbers" href="http://mydomain.com/wp-admin/admin-ajax.php?mla_paginate_current=3" tabindex="-1">3</a> <a class="page-numbers" href="http://mydomain.com/wp-admin/admin-ajax.php?mla_paginate_current=4" tabindex="-1">4</a> <a class="next page-numbers" href="http://mydomain.com/wp-admin/admin-ajax.php?mla_paginate_current=2" tabindex="-1">Next »</a>I need the former kind of links produced in both cases, as the infinite scroll paginator plugin used doesn’t work with the latter. How to fix this?
Thanks.
The topic ‘Pagination problem’ is closed to new replies.