{"id":18457,"date":"2025-12-24T14:22:09","date_gmt":"2025-12-24T13:22:09","guid":{"rendered":"https:\/\/paperwise.eu\/histoires\/"},"modified":"2026-07-03T07:34:09","modified_gmt":"2026-07-03T05:34:09","slug":"histoires","status":"publish","type":"page","link":"https:\/\/paperwise.eu\/fr\/histoires\/","title":{"rendered":"Histoires"},"content":{"rendered":"\n<section class=\"section-blog-archive section-blog-archive\" >\n    <div class=\"container \">\n\n                    <div class=\"section-header\">\n                                    <h2 class=\"section-title\">Histoires<\/h2>\n                                            <\/div>\n        \n        \n        <div class=\"blog-grid columns-3\" id=\"blog-grid-block_224aa2782007cdc923d599f74aba72b0\">\n                            <div class=\"no-posts\">\n                    <p>Er zijn geen blogposts gevonden.<\/p>\n                <\/div>\n                    <\/div>\n\n                    <div class=\"blog-pagination-wrapper\"\n                 data-grid-id=\"blog-grid-block_224aa2782007cdc923d599f74aba72b0\"\n                 data-current-page=\"1\"\n                 data-total-pages=\"0\"\n                 data-per-page=\"12\"\n                 data-categories=\"148\"\n                 style=\"display: none;\">\n                <div class=\"blog-pagination\">\n                    <button type=\"button\" class=\"page-numbers prev disabled\" disabled>\n                        &larr; Vorige                    <\/button>\n                    <span class=\"page-numbers current-info\">\n                        Pagina 1 van 0                    <\/span>\n                    <button type=\"button\" class=\"page-numbers next disabled\" disabled>\n                        Volgende &rarr;\n                    <\/button>\n                <\/div>\n            <\/div>\n            <\/div>\n<\/section>\n\n<script>\ndocument.addEventListener('DOMContentLoaded', function() {\n    const grid = document.getElementById('blog-grid-block_224aa2782007cdc923d599f74aba72b0');\n    if (!grid) return;\n\n    const section = grid.closest('.section-blog-archive');\n    const filterPills = section.querySelectorAll('.filter-pill');\n    const paginationWrapper = section.querySelector('.blog-pagination-wrapper');\n\n    \/\/ State\n    let currentPage = 1;\n    let totalPages = 0;\n    const perPage = 12;\n    const selectedCategories = '148'; \/\/ ACF selected categories\n    let currentFilterTag = 'all'; \/\/ Currently active filter\n    let isLoading = false;\n\n    \/\/ Pagination elements\n    let prevBtn, nextBtn, currentInfo;\n    if (paginationWrapper) {\n        prevBtn = paginationWrapper.querySelector('.prev');\n        nextBtn = paginationWrapper.querySelector('.next');\n        currentInfo = paginationWrapper.querySelector('.current-info');\n    }\n\n    \/\/ Update pagination UI\n    function updatePaginationState() {\n        if (!paginationWrapper) return;\n\n        \/\/ Show\/hide pagination based on total pages\n        if (totalPages <= 1) {\n            paginationWrapper.style.display = 'none';\n        } else {\n            paginationWrapper.style.display = '';\n        }\n\n        \/\/ Update button states\n        prevBtn.disabled = currentPage <= 1;\n        nextBtn.disabled = currentPage >= totalPages;\n        prevBtn.classList.toggle('disabled', currentPage <= 1);\n        nextBtn.classList.toggle('disabled', currentPage >= totalPages);\n        currentInfo.textContent = 'Pagina ' + currentPage + ' van ' + totalPages;\n    }\n\n    \/\/ Load posts via AJAX (server-side filtering)\n    function loadPosts(page, filterTag) {\n        if (isLoading) return;\n        isLoading = true;\n\n        grid.style.opacity = '0.5';\n\n        const formData = new FormData();\n        formData.append('action', 'get_blog_archive_page');\n        formData.append('nonce', allround_vars.aw_nonce);\n        formData.append('page', page);\n        formData.append('per_page', perPage);\n\n        \/\/ Send ACF selected categories (base filter)\n        if (selectedCategories) {\n            formData.append('categories', selectedCategories);\n        }\n\n        \/\/ Send clicked filter tag\n        if (filterTag && filterTag !== 'all') {\n            formData.append('filter_tag', filterTag);\n        }\n\n        fetch(allround_vars.ajax_url, {\n            method: 'POST',\n            body: formData\n        })\n        .then(response => response.json())\n        .then(data => {\n            if (data.success) {\n                grid.innerHTML = data.data.html;\n                currentPage = data.data.current_page;\n                totalPages = data.data.total_pages;\n\n                if (paginationWrapper) {\n                    paginationWrapper.dataset.currentPage = currentPage;\n                    paginationWrapper.dataset.totalPages = totalPages;\n                }\n\n                updatePaginationState();\n            }\n        })\n        .catch(error => console.error('AJAX error:', error))\n        .finally(() => {\n            isLoading = false;\n            grid.style.opacity = '1';\n        });\n    }\n\n    \/\/ Filter click handler - SERVER-SIDE filtering via AJAX\n    filterPills.forEach(function(pill) {\n        pill.addEventListener('click', function() {\n            const filterTag = this.dataset.tag;\n\n            \/\/ Update active state\n            filterPills.forEach(p => p.classList.remove('active'));\n            this.classList.add('active');\n\n            \/\/ Store current filter for pagination\n            currentFilterTag = filterTag;\n\n            \/\/ Load page 1 with new filter via AJAX\n            loadPosts(1, filterTag);\n        });\n    });\n\n    \/\/ Pagination click handlers\n    if (paginationWrapper && prevBtn && nextBtn) {\n        prevBtn.addEventListener('click', function() {\n            if (currentPage > 1) {\n                loadPosts(currentPage - 1, currentFilterTag);\n            }\n        });\n\n        nextBtn.addEventListener('click', function() {\n            if (currentPage < totalPages) {\n                loadPosts(currentPage + 1, currentFilterTag);\n            }\n        });\n    }\n});\n<\/script>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"footnotes":""},"class_list":["post-18457","page","type-page","status-publish","hentry"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Histoires - Paperwise<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/paperwise.eu\/fr\/histoires\/\" \/>\n<meta property=\"og:locale\" content=\"fr_FR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Histoires - Paperwise\" \/>\n<meta property=\"og:url\" content=\"https:\/\/paperwise.eu\/fr\/histoires\/\" \/>\n<meta property=\"og:site_name\" content=\"Paperwise\" \/>\n<meta property=\"article:modified_time\" content=\"2026-07-03T05:34:09+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/paperwise.eu\\\/fr\\\/histoires\\\/\",\"url\":\"https:\\\/\\\/paperwise.eu\\\/fr\\\/histoires\\\/\",\"name\":\"Histoires - Paperwise\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/paperwise.eu\\\/fr\\\/#website\"},\"datePublished\":\"2025-12-24T13:22:09+00:00\",\"dateModified\":\"2026-07-03T05:34:09+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/paperwise.eu\\\/fr\\\/histoires\\\/#breadcrumb\"},\"inLanguage\":\"fr-FR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/paperwise.eu\\\/fr\\\/histoires\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/paperwise.eu\\\/fr\\\/histoires\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Accueil\",\"item\":\"https:\\\/\\\/paperwise.eu\\\/fr\\\/page-daccueil\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Histoires\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/paperwise.eu\\\/fr\\\/#website\",\"url\":\"https:\\\/\\\/paperwise.eu\\\/fr\\\/\",\"name\":\"Paperwise\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/paperwise.eu\\\/fr\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"fr-FR\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Histoires - Paperwise","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/paperwise.eu\/fr\/histoires\/","og_locale":"fr_FR","og_type":"article","og_title":"Histoires - Paperwise","og_url":"https:\/\/paperwise.eu\/fr\/histoires\/","og_site_name":"Paperwise","article_modified_time":"2026-07-03T05:34:09+00:00","twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/paperwise.eu\/fr\/histoires\/","url":"https:\/\/paperwise.eu\/fr\/histoires\/","name":"Histoires - Paperwise","isPartOf":{"@id":"https:\/\/paperwise.eu\/fr\/#website"},"datePublished":"2025-12-24T13:22:09+00:00","dateModified":"2026-07-03T05:34:09+00:00","breadcrumb":{"@id":"https:\/\/paperwise.eu\/fr\/histoires\/#breadcrumb"},"inLanguage":"fr-FR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/paperwise.eu\/fr\/histoires\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/paperwise.eu\/fr\/histoires\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Accueil","item":"https:\/\/paperwise.eu\/fr\/page-daccueil\/"},{"@type":"ListItem","position":2,"name":"Histoires"}]},{"@type":"WebSite","@id":"https:\/\/paperwise.eu\/fr\/#website","url":"https:\/\/paperwise.eu\/fr\/","name":"Paperwise","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/paperwise.eu\/fr\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"fr-FR"}]}},"_links":{"self":[{"href":"https:\/\/paperwise.eu\/fr\/wp-json\/wp\/v2\/pages\/18457","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/paperwise.eu\/fr\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/paperwise.eu\/fr\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/paperwise.eu\/fr\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/paperwise.eu\/fr\/wp-json\/wp\/v2\/comments?post=18457"}],"version-history":[{"count":1,"href":"https:\/\/paperwise.eu\/fr\/wp-json\/wp\/v2\/pages\/18457\/revisions"}],"predecessor-version":[{"id":18458,"href":"https:\/\/paperwise.eu\/fr\/wp-json\/wp\/v2\/pages\/18457\/revisions\/18458"}],"wp:attachment":[{"href":"https:\/\/paperwise.eu\/fr\/wp-json\/wp\/v2\/media?parent=18457"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}