malinky / malinky-ajax-pagination

Wordpress Ajax Pagination
http://www.wordpress-ajax-pagination.com
12 stars 10 forks source link

Infinite scroll / pagination hybrid #42

Open yumyo opened 7 years ago

yumyo commented 7 years ago

Hi,

Thank you very much for this plugin.

I am currently looking to achieve a behaviour that sort of mixes the infinite scroll and the pagination modes.

Essentially the basic behaviour is infinite scroll but if the user clicks a pagination link (say page 4), the script sequentially loads pages 1, 2, 3 and 4. If the user is already on page 3, the script loads just page 4. Is it achievable with the current JS API?

Alternatively, could you please provide an example of calling the plugin ajax functions directly?

strife82 commented 6 years ago

I'm trying to do that too. It could be really useful just to create a function to stop the plugin running..