I discovered Infinite Scroll has an updateurl function:
var nextURL;
function updateNextURL( doc ) {
nextURL = $( doc ).find('.tax-pages a.next').attr('href');
}
// get initial nextURL
updateNextURL( document );
// init Infinite Scroll
var $container = $('#main').infiniteScroll({
// use function to set custom URLs
path: function() {
return nextURL;
},
hideNav: ".tax-pages",
append: "#main ul.products",
status: '.page-load-status',
debug: true
});
// update nextURL on page load
$container.on( 'load.infiniteScroll', function( event, response ) {
updateNextURL( response );
});
Related Posts:
- Edit post meta with checkboxes on front end
- Outputting an array of term meta values in a custom WooCommerce tab?
- Get child product categories from parent product category in WooCommerce
- AJAX response, edit tags
- Get custom category image from menu
- Getting WooCommerce product related child categories
- Cloning product not copying custom taxonomies
- Custom order of taxonomy using wp_get_object_terms and woocommerce_term_meta
- Display woocommerce product_cat child terms with thumbnails
- How do I check if a post has a term with a particular ancestor/parent?
- Hide empty categories on widget
- Set Variant options/attributes values on WooCommerce
- What is the action hook that deletes a taxonomy term from the backend? And how to retireve the term id before deleting it?
- Get all attachments by custom taxonomy – term
- Echo custom taxonomy slug
- Get terms that don’t belong to current post with a shortcode
- Get all terms, including unchecked, or get the terms outside loop
- Admin (All posts) stop responding problem
- get_term_link not working
- Query posts using custom taxonomy and selected terms
- How to write sql query to get the posts from a custom taxonomy term name
- How to find taxonomy parent id from child taxonomy page?
- Get only immediate children (and not grandchildren) of a hierarchical custom taxonomy term
- Proper use of wp_get_object_terms
- Remove a href from this code
- Set term on an attachment using wp_set_object_terms and want to display the full term text but it’s showing a slug instead
- Why isn’t the ‘no results’ being shown when a query returns no results?
- How to get_the_term_list() from multiple taxonomies?
- How to support fifteen thousand terms in WordPress?
- Output all terms in a custom taxonomy and add a “active” class only to the ones attached to the current post
- How to get posts that contain multiple terms from multiple taxonomies?
- Cannot delete or edit a single term in a custom taxonomy, taxonomy name is wrong?
- How to group all terms children’s in custom taxonomy?
- Display Posts by Custom Taxonomy Chosen Terms
- Show template part if part of term
- How to display a custom taxonomy without a link?
- one post per term taxonomy
- Build filter for post-type + multi taxonomies + multi terms
- How to check if a post has at least 2 terms from a custom taxonomy attached?
- How can I change the output display of my pagination?
- Hide custom Woocommerce taxonomies when empty
- Exclude product attributes from taxonomy terms loop
- How do I get term data associated with the current post, where the result is not wrapped in HTML?
- Why does wp_remove_object_terms not work?
- How best to store data (URLs and IDs) extracted from posts and pages using custom taxonomies
- Can’t get taxonomy ID for each post on archive page
- wp_dropdown_categories – how to save in widget?
- how to get term id from current post type instead of name
- Hide terms if they aren’t the same as the current term
- echo a specific custom taxonomy term on a different custom taxonomy archive
- Display children category images
- Corrupted nav-menu?
- Get name of taxonomies of current page
- The best way to display taxonomies
- Dynamically set taxonomy term and show admin notice on post save
- WP 4.8 : new taxonomy syntax for get_term_by and get_term_link ?
- Add attribute taxonomy through code don’t appear in admin product page
- Terms change id after importing
- Create alphabetical Pagination for custom taxonomy?
- List Top 5 taxonomy terms based on number of post
- delete term from taxonomy and assign in new one
- How to show post list based on taxonomy term?
- export and import taxonomy terms from one taxonomy to another
- Can you hide empty terms using get_term_children?
- save custom term – hook create_term doesn’t work
- get_term_by works but get_terms doesn’t?
- URL rewriting taxonomy term
- Display empty custom taxonomies differently than with one with posts
- Find terms in a custom taxonomy based on the hirearchy
- Double slash in the_terms URL
- How to call a custom taxonomy term name inside a function?
- How to show post for a particular term of custom taxonomy?
- How to add custom taxonomy terms to posts in bulk
- Wp_query…a type of term a different div
- How to get this value inside RETURN
- How to list Custom Taxonomy
- Hide echo of no categories from get_object_taxonomies
- How to add a date creation field when a custom taxonomy relationship is created?
- Custom Taxonomy List with Children
- List terms of custom taxonomy if matches other taxonomy
- Adding Child Terms Programatically – No Warning but No dice either
- How to output taxonomy term (incl. link to archive) on author.php?
- why the archive of custom taxonomy term shows nothing?
- Show related posts on single.php, grouped by taxonomy terms, with Advanced Custom Field post object selected
- Show all terms in a custom taxonomy with all child terms wrapped in a ul
- Order taxonomy terms wordpress
- Show single Child Category on Custom Post
- Page for custom taxonomy
- Running a function only once when a taxonomy term is changed
- Unable to get the Parent Custom Taxonomy Terms
- How to get the term description in a taxonomy term archive query?
- Display Child Categories of Current Post ID
- Set post terms by term id
- Unsetting post_tag taxonomy breaks term description for other taxonomies
- How to list terms by first letter, as in A’s then B’s etc
- Displaying my custom taxonomies in a using the_term_list()
- Use wp_list_categories to list parent categories from actual term
- Include get_term_link inside search
- Trash Bin for Categories?
- using wp_insert_term to create custom terms for a custom taxonomy from frontend form,