Infinite Scroll appending Next Product Category Term pages

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”, … Read more

How to change Custom Permalink for Taxonomy? (remove the slashes from term-slug)

I found the solution… add_filter( ‘term_link’, ‘remove_slash_taxonomy’, 10, 2 ); function remove_slash_taxonomy( $permalink, $term ) { if ($term->taxonomy == ‘nieruchomosc’) $permalink = str_replace(“https://wordpress.stackexchange.com/”.$term->slug.”https://wordpress.stackexchange.com/”, $term->slug, $permalink); return $permalink; }