malinky / malinky-ajax-pagination

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

Push newly loaded items into array #40

Open bUxEE opened 7 years ago

bUxEE commented 7 years ago

Hello, because of the grid system I use, in order to enable this plugin in my theme I would need to push the newly loaded items into an array in my script. How could I achieve this? example function in callback settings: mygrid.items.push(newCreatedItemOrArrayFromMalinkyAjaxPagination) What would be the variable for the item/s?

yumyo commented 7 years ago

Was wondering the same thing ...

yumyo commented 7 years ago

@bux23 loadedPosts is the array of new elements received by the callback.