{"id":698,"date":"2025-06-09T14:18:38","date_gmt":"2025-06-09T18:18:38","guid":{"rendered":"https:\/\/www.empirestatepsychiatry.com\/?page_id=698"},"modified":"2026-01-27T11:19:01","modified_gmt":"2026-01-27T16:19:01","slug":"blog","status":"publish","type":"page","link":"https:\/\/www.empirestatepsychiatry.com\/es\/blog\/","title":{"rendered":"Blog"},"content":{"rendered":"    \n    <div class=\"container mt-5\">\n        <div class=\"row\">\n            <div class=\"col-md-12 mb-4\">\n                <div class=\"category-filter\"><div class=\"btn-group\" role=\"group\"><button type=\"button\" class=\"btn btn-filter active me-3\" data-category=\"all\">All<\/button><button type=\"button\" class=\"btn btn-filter me-3\" data-category=\"uncategorized\">Uncategorized<\/button><\/div><\/div>            <\/div>\n        <\/div>\n    <\/div>\n\n    <div class=\"container mt-5\">\n        <div class=\"row\">\n\n            <div class=\"col-md-3\">\n                <div class=\"mb-4\">\n                    <input type=\"text\" id=\"news-search\" class=\"form-control\" placeholder=\"Search news...\">\n                <\/div>\n            <\/div>\n\n            <div class=\"col-md-9\">\n                <div id=\"primary\" class=\"content-area\">\n                    <main id=\"main\" class=\"site-main page-id-698 post-698 page type-page status-publish hentry\">\n                        <div class=\"row row-news\">                                <div class=\"mb-4 card-news col-lg-4 col-12\" data-taxonomy=\"uncategorized\">\n                                    <a href=\"https:\/\/www.empirestatepsychiatry.com\/es\/welcome-to-our-new-patient-focused-website\/\">\n                                        <div class=\"card\">\n                                                                                            <div class=\"card-img-top\">\n                                                    <img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"104\" src=\"https:\/\/www.empirestatepsychiatry.com\/wp-content\/uploads\/2025\/06\/Patient-Resources-Header-Image-1-300x104.jpg\" class=\"img-fluid wp-post-image\" alt=\"\" srcset=\"https:\/\/www.empirestatepsychiatry.com\/wp-content\/uploads\/2025\/06\/Patient-Resources-Header-Image-1-300x104.jpg 300w, https:\/\/www.empirestatepsychiatry.com\/wp-content\/uploads\/2025\/06\/Patient-Resources-Header-Image-1-1024x356.jpg 1024w, https:\/\/www.empirestatepsychiatry.com\/wp-content\/uploads\/2025\/06\/Patient-Resources-Header-Image-1-768x267.jpg 768w, https:\/\/www.empirestatepsychiatry.com\/wp-content\/uploads\/2025\/06\/Patient-Resources-Header-Image-1.jpg 1440w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/>                                                <\/div>\n                                                                                        \n                                            <div class=\"card-body\">\n                                                <h5 class=\"card-title\">Welcome to our new patient focused website!<\/h5>\n                                                <p class=\"card-text\"><small class=\"text-muted\">junio 9, 2025<\/small><\/p>\n                                                <!-- <a href=\"\" class=\"btn btn-primary\">Read More<\/a> -->\n                                            <\/div>\n                                        <\/div>\n                                    <\/a>\n                                <\/div>\n                                <\/div>                        <div id=\"pagination-container\" class=\"py-5\"><\/div>\n                    <\/main>\n                <\/div>\n            <\/div>\n        <\/div>\n    <\/div>\n\n    <script>\n    document.addEventListener('DOMContentLoaded', function() {\n        const searchInput = document.getElementById('news-search');\n        const newsContainer = document.querySelector('.row-news');\n        const paginationContainer = document.getElementById('pagination-container');\n        const newsItems = newsContainer.querySelectorAll('.card-news');\n        let currentPage = 1;\n        let postsPerPage = 9; \/\/ Make sure this matches the PHP $posts_per_page value\n        let currentCategory = 'all';\n\n        function filterPosts() {\n            const searchTerm = searchInput.value.toLowerCase();\n            return Array.from(newsItems).filter(item => {\n                const matchesCategory = currentCategory === 'all' || item.dataset.taxonomy.includes(currentCategory);\n                const matchesSearch = searchTerm === '' || item.textContent.toLowerCase().includes(searchTerm);\n                return matchesCategory && matchesSearch;\n            });\n        }\n\n        function displayPosts(posts, page) {\n            const start = (page - 1) * postsPerPage;\n            const end = start + postsPerPage;\n            const paginatedPosts = posts.slice(start, end);\n\n            newsItems.forEach(item => item.style.display = 'none');\n            paginatedPosts.forEach(post => post.style.display = '');\n        }\n\n        function setupPagination(posts) {\n            const pageCount = Math.ceil(posts.length \/ postsPerPage);\n            paginationContainer.innerHTML = '';\n\n            const pageNumbers = getPageNumbers(currentPage, pageCount);\n\n            pageNumbers.forEach(num => {\n                if (num === '...') {\n                    addPaginationButton('...', null, false, true);\n                } else {\n                    addPaginationButton(num, () => {\n                        currentPage = num;\n                        displayPosts(posts, currentPage);\n                        updatePagination(posts);\n                    }, currentPage === num);\n                }\n            });\n        }\n\n        function getPageNumbers(current, total) {\n            if (total <= 5) return [...Array(total)].map((_, i) => i + 1);\n\n            let pages = [1, total];\n            let left = Math.max(2, current - 1);\n            let right = Math.min(total - 1, current + 1);\n\n            for (let i = left; i <= right; i++) {\n                pages.push(i);\n            }\n\n            pages = Array.from(new Set(pages)).sort((a, b) => a - b);\n\n            if (pages[1] > 2) pages.splice(1, 0, '...');\n            if (pages[pages.length - 2] < total - 1) pages.splice(pages.length - 1, 0, '...');\n\n            return pages;\n        }\n\n        function addPaginationButton(text, onClick, isActive = false, isDisabled = false) {\n            const button = document.createElement('button');\n            button.innerText = text;\n            if (onClick) button.addEventListener('click', onClick);\n            button.disabled = isDisabled;\n            if (isActive && text !== '...') button.classList.add('active');\n            paginationContainer.appendChild(button);\n        }\n\n        function updatePagination(posts) {\n            setupPagination(posts);\n        }\n\n        function handleSearch() {\n            currentPage = 1;\n            const filteredPosts = filterPosts();\n            displayPosts(filteredPosts, currentPage);\n            setupPagination(filteredPosts);\n        }\n\n        function filterByCategory(category) {\n            currentCategory = category;\n            currentPage = 1;\n            const filteredPosts = filterPosts();\n            displayPosts(filteredPosts, currentPage);\n            setupPagination(filteredPosts);\n        }\n\n        searchInput.addEventListener('input', handleSearch);\n\n        \/\/ Add event listeners for category buttons\n        document.querySelectorAll('.category-filter button').forEach(button => {\n            button.addEventListener('click', function() {\n                document.querySelectorAll('.category-filter button').forEach(btn => btn.classList.remove('active'));\n                this.classList.add('active');\n                filterByCategory(this.dataset.category);\n            });\n        });\n\n        \/\/ Initial display\n        const initialPosts = Array.from(newsItems);\n        displayPosts(initialPosts, currentPage);\n        setupPagination(initialPosts);\n    });\n    <\/script>\n\n    \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-698","page","type-page","status-publish","hentry"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Mental Health Blog | Empire State Psychiatry<\/title>\n<meta name=\"description\" content=\"Read the Empire State Psychiatry blog for expert insights, mental health tips, and psychiatric care resources. Explore articles on anxiety, depression, ADHD, workplace wellness, and more from our NYC providers.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.empirestatepsychiatry.com\/es\/blog\/\" \/>\n<meta property=\"og:locale\" content=\"es_ES\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Mental Health Blog | Empire State Psychiatry\" \/>\n<meta property=\"og:description\" content=\"Read the Empire State Psychiatry blog for expert insights, mental health tips, and psychiatric care resources. Explore articles on anxiety, depression, ADHD, workplace wellness, and more from our NYC providers.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.empirestatepsychiatry.com\/es\/blog\/\" \/>\n<meta property=\"og:site_name\" content=\"Empire State Psychiatry\" \/>\n<meta property=\"article:modified_time\" content=\"2026-01-27T16:19:01+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Tiempo de lectura\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minuto\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.empirestatepsychiatry.com\/blog\/\",\"url\":\"https:\/\/www.empirestatepsychiatry.com\/blog\/\",\"name\":\"Mental Health Blog | Empire State Psychiatry\",\"isPartOf\":{\"@id\":\"https:\/\/www.empirestatepsychiatry.com\/#website\"},\"datePublished\":\"2025-06-09T18:18:38+00:00\",\"dateModified\":\"2026-01-27T16:19:01+00:00\",\"description\":\"Read the Empire State Psychiatry blog for expert insights, mental health tips, and psychiatric care resources. Explore articles on anxiety, depression, ADHD, workplace wellness, and more from our NYC providers.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.empirestatepsychiatry.com\/blog\/#breadcrumb\"},\"inLanguage\":\"es\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.empirestatepsychiatry.com\/blog\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.empirestatepsychiatry.com\/blog\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.empirestatepsychiatry.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Blog\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.empirestatepsychiatry.com\/#website\",\"url\":\"https:\/\/www.empirestatepsychiatry.com\/\",\"name\":\"Empire State Psychiatry\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/www.empirestatepsychiatry.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.empirestatepsychiatry.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"es\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.empirestatepsychiatry.com\/#organization\",\"name\":\"Empire State Psychiatry\",\"url\":\"https:\/\/www.empirestatepsychiatry.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"es\",\"@id\":\"https:\/\/www.empirestatepsychiatry.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.empirestatepsychiatry.com\/wp-content\/uploads\/2025\/06\/Empire-State.png\",\"contentUrl\":\"https:\/\/www.empirestatepsychiatry.com\/wp-content\/uploads\/2025\/06\/Empire-State.png\",\"width\":305,\"height\":131,\"caption\":\"Empire State Psychiatry\"},\"image\":{\"@id\":\"https:\/\/www.empirestatepsychiatry.com\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Mental Health Blog | Empire State Psychiatry","description":"Read the Empire State Psychiatry blog for expert insights, mental health tips, and psychiatric care resources. Explore articles on anxiety, depression, ADHD, workplace wellness, and more from our NYC providers.","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:\/\/www.empirestatepsychiatry.com\/es\/blog\/","og_locale":"es_ES","og_type":"article","og_title":"Mental Health Blog | Empire State Psychiatry","og_description":"Read the Empire State Psychiatry blog for expert insights, mental health tips, and psychiatric care resources. Explore articles on anxiety, depression, ADHD, workplace wellness, and more from our NYC providers.","og_url":"https:\/\/www.empirestatepsychiatry.com\/es\/blog\/","og_site_name":"Empire State Psychiatry","article_modified_time":"2026-01-27T16:19:01+00:00","twitter_card":"summary_large_image","twitter_misc":{"Tiempo de lectura":"1 minuto"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.empirestatepsychiatry.com\/blog\/","url":"https:\/\/www.empirestatepsychiatry.com\/blog\/","name":"Mental Health Blog | Empire State Psychiatry","isPartOf":{"@id":"https:\/\/www.empirestatepsychiatry.com\/#website"},"datePublished":"2025-06-09T18:18:38+00:00","dateModified":"2026-01-27T16:19:01+00:00","description":"Read the Empire State Psychiatry blog for expert insights, mental health tips, and psychiatric care resources. Explore articles on anxiety, depression, ADHD, workplace wellness, and more from our NYC providers.","breadcrumb":{"@id":"https:\/\/www.empirestatepsychiatry.com\/blog\/#breadcrumb"},"inLanguage":"es","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.empirestatepsychiatry.com\/blog\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.empirestatepsychiatry.com\/blog\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.empirestatepsychiatry.com\/"},{"@type":"ListItem","position":2,"name":"Blog"}]},{"@type":"WebSite","@id":"https:\/\/www.empirestatepsychiatry.com\/#website","url":"https:\/\/www.empirestatepsychiatry.com\/","name":"Empire State Psychiatry","description":"","publisher":{"@id":"https:\/\/www.empirestatepsychiatry.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.empirestatepsychiatry.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"es"},{"@type":"Organization","@id":"https:\/\/www.empirestatepsychiatry.com\/#organization","name":"Empire State Psychiatry","url":"https:\/\/www.empirestatepsychiatry.com\/","logo":{"@type":"ImageObject","inLanguage":"es","@id":"https:\/\/www.empirestatepsychiatry.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.empirestatepsychiatry.com\/wp-content\/uploads\/2025\/06\/Empire-State.png","contentUrl":"https:\/\/www.empirestatepsychiatry.com\/wp-content\/uploads\/2025\/06\/Empire-State.png","width":305,"height":131,"caption":"Empire State Psychiatry"},"image":{"@id":"https:\/\/www.empirestatepsychiatry.com\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/www.empirestatepsychiatry.com\/es\/wp-json\/wp\/v2\/pages\/698","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.empirestatepsychiatry.com\/es\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.empirestatepsychiatry.com\/es\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.empirestatepsychiatry.com\/es\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.empirestatepsychiatry.com\/es\/wp-json\/wp\/v2\/comments?post=698"}],"version-history":[{"count":2,"href":"https:\/\/www.empirestatepsychiatry.com\/es\/wp-json\/wp\/v2\/pages\/698\/revisions"}],"predecessor-version":[{"id":701,"href":"https:\/\/www.empirestatepsychiatry.com\/es\/wp-json\/wp\/v2\/pages\/698\/revisions\/701"}],"wp:attachment":[{"href":"https:\/\/www.empirestatepsychiatry.com\/es\/wp-json\/wp\/v2\/media?parent=698"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}