Fetching WordPress posts in Next.js with the REST API
The simplest way to use WordPress as a headless CMS for Next.js: the built-in REST API, a server component and a sensible cache.
The simplest way to use WordPress as a headless CMS for Next.js: the built-in REST API, a server component and a sensible cache.
Launch-day problems are rarely hard, just forgotten. This is the list I go through before a WordPress site goes live.
Most WordPress sites are compromised through the same few gaps. This is the checklist I run on small sites, roughly in order of impact.
Push to main, and a minute later the theme is live, but only if the checks pass. Here's the pipeline behind this site, built for ordinary cPanel hosting.
The mobile menu on this site opened as an 81px strip. The cause was a frosted-glass header, and a CSS rule most of us never think about.
A complete walkthrough of a Secure Custom Fields block: block.json, a field group, a PHP render template and a preview that matches the front end.
You don't need a token pipeline to get the benefits of design tokens. Two layers of CSS custom properties cover most sites.
Most slow WordPress sites fail Core Web Vitals for the same handful of reasons. Here's what each metric measures and the fixes that actually move it.
Dark mode is mostly a token problem. Swap a few CSS custom properties, respect the system setting, and stop the white flash before the first paint.