I have a view with a custom filters form, which is submitted via AJAX. In the AJAX callback function, I am setting some arguments to the view and render it manually:
$view = views_get_view('products_gallery'); $view->set_display('page'); $view->set_arguments($url_args); $view->execute(); $commands = ajax_command_replace('.view-products-gallery', $view->render());
The results come back OK, but the load more button does not work and points to
How can I fix the load more button so that it points to the current page and it loads the next results?