{"id":2884,"date":"2024-01-04T10:15:58","date_gmt":"2024-01-04T10:15:58","guid":{"rendered":"https:\/\/www.goodoakshomecare.co.uk\/franchise-new\/news\/"},"modified":"2025-07-23T13:54:44","modified_gmt":"2025-07-23T12:54:44","slug":"news","status":"publish","type":"page","link":"https:\/\/www.goodoakshomecare.co.uk\/franchise\/news\/","title":{"rendered":"News"},"content":{"rendered":"\n<div style=\"height:3rem\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n\n    \n    \n<div class=\"escape\">\n    <section class=\"posts posts--grid position-relative  pt-3 pt-md-5 pb-3 pb-md-5\">\n\n        <div class=\"container-xxl px-4 px-lg-3\">\n\n            <div class=\"row\">\n                <div class=\"col-12\">\n                                    <\/div>\n            <\/div>\n\n            <div class=\"row mx-lg-n3\">\n\n                \n                <div class=\"col-12 col-lg-12 px-lg-3\">\n\n                    <div class=\"posts-wrap ajax-list\" data-state='{\"post_type\":\"post\",\"orderby\":\"date\",\"order\":\"desc\",\"posts_per_page\":\"12\",\"paged\":2,\"category\":\"franchise\",\"blog_id\":2,\"category_name\":\"franchise\"}'>\n\n                        <div\n                            data-animation=\"none\"\n                            class=\"posts__list list row d-flex\"\n                        >\n\n                            \n                                                        \n                                \n                            \n                            \n                            \n                            \n                                <article data-type=\"post\" class=\"summary col-12 col-md-4 col-sm-6 mb-4\">\n    <a href=\"https:\/\/www.goodoakshomecare.co.uk\/franchise\/goodoaks-homecare-franchise-15-years\/\" class=\"d-block h-100 no-decoration\">\n        <div class=\"aspect-16:9 position-relative\">\n            <img decoding=\"async\" class=\"object-cover\" alt=\"How 15 years of better care built a proud homecare franchise Image\" src=\"https:\/\/www.goodoakshomecare.co.uk\/app\/uploads\/sites\/2\/2026\/11\/GoodOaks-Homecare-Franchise-15-Years-of-Growth-500x0-c-default.webp\" style=\"border-top-left-radius: 20px; border-top-right-radius: 20px;\"\/>\n        <\/div>\n        <div class=\"p-4\">\n            <h3 class=\"text-white lead fw-bold mb-3\">How 15 years of better care built a proud homecare franchise<\/h3>\n            <div class=\"d-inline-block text-white read-more\">Read<\/div>\n        <\/div>\n    <\/a>\n<\/article>\n                            \n                                <article data-type=\"post\" class=\"summary col-12 col-md-4 col-sm-6 mb-4\">\n    <a href=\"https:\/\/www.goodoakshomecare.co.uk\/franchise\/goodoaks-homecare-franchise-support\/\" class=\"d-block h-100 no-decoration\">\n        <div class=\"aspect-16:9 position-relative\">\n            <img decoding=\"async\" class=\"object-cover\" alt=\"What expertise sits behind a GoodOaks homecare franchise? Image\" src=\"https:\/\/www.goodoakshomecare.co.uk\/app\/uploads\/sites\/2\/2026\/10\/What-expertise-sits-behind-a-GoodOaks-homecare-franchise-500x0-c-default.webp\" style=\"border-top-left-radius: 20px; border-top-right-radius: 20px;\"\/>\n        <\/div>\n        <div class=\"p-4\">\n            <h3 class=\"text-white lead fw-bold mb-3\">What expertise sits behind a GoodOaks homecare franchise?<\/h3>\n            <div class=\"d-inline-block text-white read-more\">Read<\/div>\n        <\/div>\n    <\/a>\n<\/article>\n                            \n                                <article data-type=\"post\" class=\"summary col-12 col-md-4 col-sm-6 mb-4\">\n    <a href=\"https:\/\/www.goodoakshomecare.co.uk\/franchise\/goodoaks-homecare-franchise-satisfaction\/\" class=\"d-block h-100 no-decoration\">\n        <div class=\"aspect-16:9 position-relative\">\n            <img decoding=\"async\" class=\"object-cover\" alt=\"Why GoodOaks Homecare is fast becoming the franchise of choice Image\" src=\"https:\/\/www.goodoakshomecare.co.uk\/app\/uploads\/sites\/2\/2026\/09\/GoodOaks-Homecare-Franchise-earns-5-Star-satisfaction-award-500x0-c-default.webp\" style=\"border-top-left-radius: 20px; border-top-right-radius: 20px;\"\/>\n        <\/div>\n        <div class=\"p-4\">\n            <h3 class=\"text-white lead fw-bold mb-3\">Why GoodOaks Homecare is fast becoming the franchise of choice<\/h3>\n            <div class=\"d-inline-block text-white read-more\">Read<\/div>\n        <\/div>\n    <\/a>\n<\/article>\n                            \n                                <article data-type=\"post\" class=\"summary col-12 col-md-4 col-sm-6 mb-4\">\n    <a href=\"https:\/\/www.goodoakshomecare.co.uk\/franchise\/cqc-registration-for-homecare-goodoaks-franchise\/\" class=\"d-block h-100 no-decoration\">\n        <div class=\"aspect-16:9 position-relative\">\n            <img decoding=\"async\" class=\"object-cover\" alt=\"How to register with the CQC as a homecare provider Image\" src=\"https:\/\/www.goodoakshomecare.co.uk\/app\/uploads\/sites\/2\/2026\/08\/GoodOaks_078A6758-1-scaled-500x0-c-default.webp\" style=\"border-top-left-radius: 20px; border-top-right-radius: 20px;\"\/>\n        <\/div>\n        <div class=\"p-4\">\n            <h3 class=\"text-white lead fw-bold mb-3\">How to register with the CQC as a homecare provider<\/h3>\n            <div class=\"d-inline-block text-white read-more\">Read<\/div>\n        <\/div>\n    <\/a>\n<\/article>\n                            \n                                <article data-type=\"post\" class=\"summary col-12 col-md-4 col-sm-6 mb-4\">\n    <a href=\"https:\/\/www.goodoakshomecare.co.uk\/franchise\/which-business-skills-transfer-into-homecare-franchising\/\" class=\"d-block h-100 no-decoration\">\n        <div class=\"aspect-16:9 position-relative\">\n            <img decoding=\"async\" class=\"object-cover\" alt=\"Which business skills transfer into homecare franchising? Image\" src=\"https:\/\/www.goodoakshomecare.co.uk\/app\/uploads\/sites\/2\/2026\/07\/Which-business-skills-transfer-into-homecare-franchising--500x0-c-default.webp\" style=\"border-top-left-radius: 20px; border-top-right-radius: 20px;\"\/>\n        <\/div>\n        <div class=\"p-4\">\n            <h3 class=\"text-white lead fw-bold mb-3\">Which business skills transfer into homecare franchising?<\/h3>\n            <div class=\"d-inline-block text-white read-more\">Read<\/div>\n        <\/div>\n    <\/a>\n<\/article>\n                            \n                                <article data-type=\"post\" class=\"summary col-12 col-md-4 col-sm-6 mb-4\">\n    <a href=\"https:\/\/www.goodoakshomecare.co.uk\/franchise\/what-being-named-a-top-20-homecare-provider-in-the-uk-means-for-our-franchise-partners\/\" class=\"d-block h-100 no-decoration\">\n        <div class=\"aspect-16:9 position-relative\">\n            <img decoding=\"async\" class=\"object-cover\" alt=\"What being named a top 20 homecare provider in the UK means for our Franchise Partners Image\" src=\"https:\/\/www.goodoakshomecare.co.uk\/app\/uploads\/sites\/2\/2026\/07\/What-being-named-a-top-20-homecare-provider-in-the-UK-means-for-our-Franchise-Partners-1-500x0-c-default.webp\" style=\"border-top-left-radius: 20px; border-top-right-radius: 20px;\"\/>\n        <\/div>\n        <div class=\"p-4\">\n            <h3 class=\"text-white lead fw-bold mb-3\">What being named a top 20 homecare provider in the UK means for our Franchise&hellip;<\/h3>\n            <div class=\"d-inline-block text-white read-more\">Read<\/div>\n        <\/div>\n    <\/a>\n<\/article>\n                            \n                                <article data-type=\"post\" class=\"summary col-12 col-md-4 col-sm-6 mb-4\">\n    <a href=\"https:\/\/www.goodoakshomecare.co.uk\/franchise\/goodoaks-annual-conference-2026-highlights-franchise-network-strength\/\" class=\"d-block h-100 no-decoration\">\n        <div class=\"aspect-16:9 position-relative\">\n            <img decoding=\"async\" class=\"object-cover\" alt=\"GoodOaks annual conference 2026 highlights franchise network strength Image\" src=\"https:\/\/www.goodoakshomecare.co.uk\/app\/uploads\/sites\/2\/2026\/06\/GoodOaks-annual-conference-2026-highlights-franchise-network-strength-2-500x0-c-default.webp\" style=\"border-top-left-radius: 20px; border-top-right-radius: 20px;\"\/>\n        <\/div>\n        <div class=\"p-4\">\n            <h3 class=\"text-white lead fw-bold mb-3\">GoodOaks annual conference 2026 highlights franchise network strength<\/h3>\n            <div class=\"d-inline-block text-white read-more\">Read<\/div>\n        <\/div>\n    <\/a>\n<\/article>\n                            \n                                <article data-type=\"post\" class=\"summary col-12 col-md-4 col-sm-6 mb-4\">\n    <a href=\"https:\/\/www.goodoakshomecare.co.uk\/franchise\/why-consistency-is-the-most-underrated-innovation-in-homecare\/\" class=\"d-block h-100 no-decoration\">\n        <div class=\"aspect-16:9 position-relative\">\n            <img decoding=\"async\" class=\"object-cover\" alt=\"Why consistency is the most underrated innovation in homecare Image\" src=\"https:\/\/www.goodoakshomecare.co.uk\/app\/uploads\/sites\/2\/2026\/06\/Why-consistency-is-the-most-underrated-innovation-in-homecare-1-500x0-c-default.webp\" style=\"border-top-left-radius: 20px; border-top-right-radius: 20px;\"\/>\n        <\/div>\n        <div class=\"p-4\">\n            <h3 class=\"text-white lead fw-bold mb-3\">Why consistency is the most underrated innovation in homecare<\/h3>\n            <div class=\"d-inline-block text-white read-more\">Read<\/div>\n        <\/div>\n    <\/a>\n<\/article>\n                            \n                                <article data-type=\"post\" class=\"summary col-12 col-md-4 col-sm-6 mb-4\">\n    <a href=\"https:\/\/www.goodoakshomecare.co.uk\/franchise\/why-care-franchising-is-coming-into-its-own\/\" class=\"d-block h-100 no-decoration\">\n        <div class=\"aspect-16:9 position-relative\">\n            <img decoding=\"async\" class=\"object-cover\" alt=\"Why care franchising is coming into its own Image\" src=\"https:\/\/www.goodoakshomecare.co.uk\/app\/uploads\/sites\/2\/2026\/06\/Why-care-franchising-is-coming-into-its-own-2-500x0-c-default.webp\" style=\"border-top-left-radius: 20px; border-top-right-radius: 20px;\"\/>\n        <\/div>\n        <div class=\"p-4\">\n            <h3 class=\"text-white lead fw-bold mb-3\">Why care franchising is coming into its own<\/h3>\n            <div class=\"d-inline-block text-white read-more\">Read<\/div>\n        <\/div>\n    <\/a>\n<\/article>\n                            \n                                <article data-type=\"post\" class=\"summary col-12 col-md-4 col-sm-6 mb-4\">\n    <a href=\"https:\/\/www.goodoakshomecare.co.uk\/franchise\/finding-purpose-through-franchising-at-goodoaks-homecare\/\" class=\"d-block h-100 no-decoration\">\n        <div class=\"aspect-16:9 position-relative\">\n            <img decoding=\"async\" class=\"object-cover\" alt=\"Finding purpose through franchising at GoodOaks Homecare Image\" src=\"https:\/\/www.goodoakshomecare.co.uk\/app\/uploads\/sites\/2\/2026\/04\/Babita-Finding-purpose-through-franchising-at-GoodOaks-Homecare-500x0-c-default.webp\" style=\"border-top-left-radius: 20px; border-top-right-radius: 20px;\"\/>\n        <\/div>\n        <div class=\"p-4\">\n            <h3 class=\"text-white lead fw-bold mb-3\">Finding purpose through franchising at GoodOaks Homecare<\/h3>\n            <div class=\"d-inline-block text-white read-more\">Read<\/div>\n        <\/div>\n    <\/a>\n<\/article>\n                            \n                                <article data-type=\"post\" class=\"summary col-12 col-md-4 col-sm-6 mb-4\">\n    <a href=\"https:\/\/www.goodoakshomecare.co.uk\/franchise\/achieving-cqc-outstanding-how-the-goodoaks-homecare-franchise-model-delivers\/\" class=\"d-block h-100 no-decoration\">\n        <div class=\"aspect-16:9 position-relative\">\n            <img decoding=\"async\" class=\"object-cover\" alt=\"How the GoodOaks franchise model supports Outstanding homecare Image\" src=\"https:\/\/www.goodoakshomecare.co.uk\/app\/uploads\/sites\/2\/2026\/04\/download-500x0-c-default.webp\" style=\"border-top-left-radius: 20px; border-top-right-radius: 20px;\"\/>\n        <\/div>\n        <div class=\"p-4\">\n            <h3 class=\"text-white lead fw-bold mb-3\">How the GoodOaks franchise model supports Outstanding homecare<\/h3>\n            <div class=\"d-inline-block text-white read-more\">Read<\/div>\n        <\/div>\n    <\/a>\n<\/article>\n                            \n                                <article data-type=\"post\" class=\"summary col-12 col-md-4 col-sm-6 mb-4\">\n    <a href=\"https:\/\/www.goodoakshomecare.co.uk\/franchise\/why-leadership-training-matters-in-homecare-franchising\/\" class=\"d-block h-100 no-decoration\">\n        <div class=\"aspect-16:9 position-relative\">\n            <img decoding=\"async\" class=\"object-cover\" alt=\"Why leadership training matters in homecare franchising Image\" src=\"https:\/\/www.goodoakshomecare.co.uk\/app\/uploads\/sites\/2\/2026\/03\/GoodOaks-Franchising-Leadership-500x0-c-default.webp\" style=\"border-top-left-radius: 20px; border-top-right-radius: 20px;\"\/>\n        <\/div>\n        <div class=\"p-4\">\n            <h3 class=\"text-white lead fw-bold mb-3\">Why leadership training matters in homecare franchising<\/h3>\n            <div class=\"d-inline-block text-white read-more\">Read<\/div>\n        <\/div>\n    <\/a>\n<\/article>\n                            \n                        <\/div>\n\n                        \n                            <div class=\"py-3 d-flex text-center justify-content-center d-block\">\n\n                                <a class=\"load-more btn btn-primary fw-bold rounded-pill text-capitalize me-3\">\n                                    Load More\n                                <\/a>\n\n                                <button\n                                    onclick=\"topFunction()\"\n                                    class=\"btn btn-secondary fw-bold rounded-pill text-capitalize\"\n                                    id=\"top-btn\"\n                                >\n                                    Back to top\n                                <\/button>\n\n                            <\/div>\n\n                        \n                    <\/div>\n\n\n\n                <\/div>\n\n            <\/div>\n\n        <\/div>\n\n    <\/section>\n<\/div>\n\n<style>\n\n.blog-sidebar {\n    position: sticky;\n    top: 30px;\n    background: #f1f6e5;\n    border-radius: 40px;\n    padding: 32px 24px;\n}\n\n.blog-sidebar h3 {\n    color: #008657;\n    font-size: 24px;\n    margin-bottom: 28px !important;\n}\n\n.blog-filter__item {\n    display: flex;\n    align-items: center;\n    gap: 14px;\n    width: 100%;\n    background: #e5f1c8;\n    border-radius: 50px;\n    padding: 16px 20px;\n    margin-bottom: 10px;\n    font-weight: 700;\n    cursor: pointer;\n}\n\n.blog-filter__checkbox {\n    position: absolute;\n    opacity: 0;\n    pointer-events: none;\n}\n\n.blog-filter__radio {\n    position: relative;\n    width: 20px;\n    height: 20px;\n    border: 3px solid #76b900;\n    border-radius: 50%;\n    flex-shrink: 0;\n}\n\n.blog-filter__checkbox:checked + .blog-filter__radio::after {\n    content: \"\";\n    position: absolute;\n    width: 8px;\n    height: 8px;\n    border-radius: 50%;\n    background: #76b900;\n    top: 50%;\n    left: 50%;\n    transform: translate(-50%, -50%);\n}\n\n.blog-filter__label {\n    line-height: 1.2;\n    font-size: 14px;\n}\n\n.blog-filter__clear {\n    display: block;\n    width: 100%;\n    margin-top: 22px;\n    padding: 14px 20px;\n    background: transparent;\n    border: 3px solid #76b900;\n    border-radius: 50px;\n    font-weight: 700;\n    text-align: center;\n    cursor: pointer;\n}\n\n\n\/* -----------------------------------------\n   Mobile filter toggle\n----------------------------------------- *\/\n\n@media (max-width: 991.98px) {\n\n    .blog-sidebar {\n        position: relative;\n        top: auto;\n        padding: 0;\n        margin-bottom: 40px;\n        border-radius: 40px;\n        overflow: hidden;\n    }\n\n    .blog-sidebar h3 {\n        position: relative;\n        display: flex;\n        align-items: center;\n        justify-content: space-between;\n        min-height: 100px;\n        margin: 0 !important;\n        padding: 28px 40px;\n        cursor: pointer;\n        user-select: none;\n    }\n\n    \/* Chevron *\/\n    .blog-sidebar h3::after {\n        content: \"\";\n        width: 18px;\n        height: 18px;\n        border-right: 4px solid #008657;\n        border-bottom: 4px solid #008657;\n        transform: rotate(45deg);\n        transition: transform 0.25s ease;\n        margin-top: -8px;\n    }\n\n    \/* Closed by default *\/\n    .blog-filter {\n        display: none;\n        padding: 0 24px 28px;\n    }\n\n    \/* Open state *\/\n    .blog-sidebar.is-open .blog-filter {\n        display: block;\n    }\n\n    .blog-sidebar.is-open h3::after {\n        transform: rotate(225deg);\n        margin-top: 8px;\n    }\n\n}\n\n\n\/* Desktop filter always visible *\/\n@media (min-width: 992px) {\n\n    .blog-filter {\n        display: block !important;\n    }\n\n}\n\n<\/style>\n<script>\ndocument.addEventListener('DOMContentLoaded', function () {\n\n    const checkboxes = document.querySelectorAll('.blog-filter__checkbox');\n    const clearButton = document.querySelector('.blog-filter__clear');\n    const postsList = document.querySelector('.posts__list');\n    const loadMoreButton = document.querySelector('.load-more');\n    const ajaxList = document.querySelector('.ajax-list');\n    const blogSidebar = document.querySelector('.blog-sidebar');\n    const filterHeading = blogSidebar\n        ? blogSidebar.querySelector('h3')\n        : null;\n\n    \/*\n     * Mobile filter toggle.\n     *\n     * This only controls visibility of the existing filter.\n     * It does not interfere with filtering\/AJAX\/query strings.\n     *\/\n    if (blogSidebar && filterHeading) {\n\n        filterHeading.addEventListener('click', function () {\n\n            if (window.innerWidth < 992) {\n                blogSidebar.classList.toggle('is-open');\n            }\n\n        });\n\n    }\n\n\n    \/*\n     * Everything below here is the existing\n     * filter\/query-string functionality.\n     *\/\n    if (!checkboxes.length || !postsList || !ajaxList) {\n        return;\n    }\n\n    let currentPage = 1;\n    let nextPage = false;\n    let filterActive = false;\n\n\n    \/**\n     * Return currently selected category slugs.\n     *\/\n    function getSelectedCategories() {\n\n        return Array.from(checkboxes)\n            .filter(function (checkbox) {\n                return checkbox.checked;\n            })\n            .map(function (checkbox) {\n                return checkbox.value;\n            });\n\n    }\n\n\n    \/**\n     * Update browser URL without reloading the page.\n     *\n     * Examples:\n     * \/news\/?filter=dementia-care\n     * \/news\/?filter=dementia-care,live-in-care\n     *\/\n    function updateFilterUrl() {\n\n        const selectedCategories = getSelectedCategories();\n        const url = new URL(window.location.href);\n\n        if (selectedCategories.length) {\n\n            url.searchParams.set(\n                'filter',\n                selectedCategories.join(',')\n            );\n\n        } else {\n\n            url.searchParams.delete('filter');\n\n        }\n\n        \/*\n         * URLSearchParams encodes commas as %2C.\n         * Replace those purely for cleaner\/shareable URLs.\n         *\/\n        const cleanUrl =\n            url.pathname +\n            url.search.replace(\/%2C\/gi, ',') +\n            url.hash;\n\n        window.history.replaceState(\n            {},\n            '',\n            cleanUrl\n        );\n\n    }\n\n\n    \/**\n     * Load filtered posts through the existing AJAX endpoint.\n     *\/\n    function loadFilteredPosts(append = false) {\n\n        const selectedCategories = getSelectedCategories();\n\n        filterActive = selectedCategories.length > 0;\n\n        if (!filterActive) {\n            return;\n        }\n\n        const state = JSON.parse(\n            ajaxList.dataset.state\n        );\n\n        const formData = new FormData();\n\n        formData.append(\n            'action',\n            'filter_blog_posts'\n        );\n\n        formData.append(\n            'paged',\n            currentPage\n        );\n\n        formData.append(\n            'posts_per_page',\n            state.posts_per_page || 6\n        );\n\n        selectedCategories.forEach(function (category) {\n\n            formData.append(\n                'categories[]',\n                category\n            );\n\n        });\n\n        fetch('\/wp\/wp-admin\/admin-ajax.php', {\n            method: 'POST',\n            body: formData\n        })\n        .then(function (response) {\n\n            return response.json();\n\n        })\n        .then(function (data) {\n\n            if (!data.success) {\n                return;\n            }\n\n            if (append) {\n\n                postsList.innerHTML += data.html;\n\n            } else {\n\n                postsList.innerHTML = data.html;\n\n            }\n\n            nextPage = data.next_page;\n\n            if (loadMoreButton) {\n\n                if (nextPage) {\n\n                    loadMoreButton.style.display = '';\n\n                } else {\n\n                    loadMoreButton.style.display = 'none';\n\n                }\n\n            }\n\n        })\n        .catch(function (error) {\n\n            console.error(\n                'Blog filter error:',\n                error\n            );\n\n        });\n\n    }\n\n\n    \/**\n     * Restore selected filters from the URL.\n     *\/\n    function initialiseFiltersFromUrl() {\n\n        const url = new URL(\n            window.location.href\n        );\n\n        const filterParam =\n            url.searchParams.get('filter');\n\n        if (!filterParam) {\n            return;\n        }\n\n        const urlCategories = filterParam\n            .split(',')\n            .map(function (category) {\n                return category.trim();\n            })\n            .filter(Boolean);\n\n        if (!urlCategories.length) {\n            return;\n        }\n\n        let matchedFilter = false;\n\n        checkboxes.forEach(function (checkbox) {\n\n            if (\n                urlCategories.includes(\n                    checkbox.value\n                )\n            ) {\n\n                checkbox.checked = true;\n                matchedFilter = true;\n\n            }\n\n        });\n\n        \/*\n         * Run the filter after restoring\n         * checkbox state from the URL.\n         *\/\n        if (matchedFilter) {\n\n            currentPage = 1;\n\n            loadFilteredPosts(false);\n\n        }\n\n    }\n\n\n    \/**\n     * Handle checkbox changes.\n     *\/\n    checkboxes.forEach(function (checkbox) {\n\n        checkbox.addEventListener(\n            'change',\n            function () {\n\n                currentPage = 1;\n\n                updateFilterUrl();\n\n                const selectedCategories =\n                    getSelectedCategories();\n\n                \/*\n                 * If final filter is unticked,\n                 * reload normal unfiltered page.\n                 *\/\n                if (!selectedCategories.length) {\n\n                    const url = new URL(\n                        window.location.href\n                    );\n\n                    url.searchParams.delete(\n                        'filter'\n                    );\n\n                    window.location.href =\n                        url.pathname +\n                        url.search +\n                        url.hash;\n\n                    return;\n\n                }\n\n                loadFilteredPosts(false);\n\n            }\n        );\n\n    });\n\n\n    \/**\n     * Handle filtered Load More.\n     *\/\n    if (loadMoreButton) {\n\n        loadMoreButton.addEventListener(\n            'click',\n            function (e) {\n\n                if (!filterActive) {\n                    return;\n                }\n\n                e.preventDefault();\n                e.stopImmediatePropagation();\n\n                if (!nextPage) {\n                    return;\n                }\n\n                currentPage = nextPage;\n\n                loadFilteredPosts(true);\n\n            },\n            true\n        );\n\n    }\n\n\n    \/**\n     * Clear all filters and return to normal page.\n     *\/\n    if (clearButton) {\n\n        clearButton.addEventListener(\n            'click',\n            function () {\n\n                checkboxes.forEach(\n                    function (checkbox) {\n                        checkbox.checked = false;\n                    }\n                );\n\n                const url = new URL(\n                    window.location.href\n                );\n\n                url.searchParams.delete(\n                    'filter'\n                );\n\n                window.location.href =\n                    url.pathname +\n                    url.search +\n                    url.hash;\n\n            }\n        );\n\n    }\n\n\n    \/**\n     * Initialise a preselected filter URL on page load.\n     *\/\n    initialiseFiltersFromUrl();\n\n});\n<\/script>","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-2884","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.goodoakshomecare.co.uk\/franchise\/wp-json\/wp\/v2\/pages\/2884","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.goodoakshomecare.co.uk\/franchise\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.goodoakshomecare.co.uk\/franchise\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.goodoakshomecare.co.uk\/franchise\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.goodoakshomecare.co.uk\/franchise\/wp-json\/wp\/v2\/comments?post=2884"}],"version-history":[{"count":23,"href":"https:\/\/www.goodoakshomecare.co.uk\/franchise\/wp-json\/wp\/v2\/pages\/2884\/revisions"}],"predecessor-version":[{"id":5287,"href":"https:\/\/www.goodoakshomecare.co.uk\/franchise\/wp-json\/wp\/v2\/pages\/2884\/revisions\/5287"}],"wp:attachment":[{"href":"https:\/\/www.goodoakshomecare.co.uk\/franchise\/wp-json\/wp\/v2\/media?parent=2884"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}