Sweet & Dessert Wines Dessert & Sweet Wine End the Night on a Sweet Note With These Excellent Dessert Wines Culture Vin Santo, the Sweet ‘Wine of Saints,’ Is Poised for a Revival Advanced Studies A Guide to Sparkling Wine’s (Often Confusing) Sweetness Terms Dessert & Sweet Wine These Complex Bottles of Sauternes Make the Case for Sweet Wine // Pagination const loadMorePosts = () => { // Load more posts const type = ‘tag_based’; const postsPerPage = ‘8’; const numPages = ‘1’; let postType = ‘post’; const taxonomyType = ‘category’; const taxValue = ‘dessert-wine’; const parentID = ”; postType = ‘page’ === postType ? ‘pages’ : postType; postType = ‘post’ === postType ? ‘posts’ : postType; //array of post ids where each array item is a page of posts const manualPosts = JSON.parse(‘null’); let currentPage = 1; //@todo We start pagination from page 2, so we set it to 1 let url = ”; const hasLabel = ‘1’; document.getElementById(‘tock-load-more’).addEventListener(‘click’, function(e) { e.preventDefault(); //Show loading text in the button document.getElementById(“tock-load-more”).innerHTML = “Loading…”; if(type === ‘manual’) { // .. @todo do pagination based on the manual content by array of IDs //loop through manualPosts array if( manualPosts.length > 0
This Article was originally published on Wine Enthusiast