<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Shahbaz Ali</title>
    <description>The latest articles on DEV Community by Shahbaz Ali (@shahbaz_ali_d259299f566fd).</description>
    <link>https://dev.to/shahbaz_ali_d259299f566fd</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4281341%2F11f96478-0ac0-48fa-b61c-d67d11df7d55.jpg</url>
      <title>DEV Community: Shahbaz Ali</title>
      <link>https://dev.to/shahbaz_ali_d259299f566fd</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/shahbaz_ali_d259299f566fd"/>
    <language>en</language>
    <item>
      <title>Figma to Elementor: The Complete Conversion Guide (2027)</title>
      <dc:creator>Shahbaz Ali</dc:creator>
      <pubDate>Thu, 03 Dec 2026 20:18:46 +0000</pubDate>
      <link>https://dev.to/shahbaz_ali_d259299f566fd/figma-to-elementor-the-complete-conversion-guide-2027-1577</link>
      <guid>https://dev.to/shahbaz_ali_d259299f566fd/figma-to-elementor-the-complete-conversion-guide-2027-1577</guid>
      <description>&lt;p&gt;&lt;strong&gt;Quick answer:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;There’s still no one-click Figma-to-Elementor export that produces production-ready pages. The reliable workflow is a structured rebuild: set Elementor’s global styles to match Figma’s tokens, build the header and footer as theme templates, then rebuild each page section by section with Flexbox Containers that mirror Figma’s auto-layout. In 2026 you can speed this up a lot by connecting &lt;strong&gt;Figma MCP&lt;/strong&gt; and &lt;strong&gt;Elementor MCP&lt;/strong&gt; to an AI agent like &lt;strong&gt;Claude Code&lt;/strong&gt;, which reads the design and drafts the Elementor pages for you to review. A typical five-page site takes two to four days by hand, less with the AI workflow.&lt;/p&gt;

&lt;p&gt;You designed it in Figma. Now you need it built in Elementor — pixel-perfect, responsive, and editable by a client who has never opened a design tool. That gap between a static Figma file and a live Elementor page is where most projects either fly or quietly fall apart, and the difference is almost always process, not skill.&lt;/p&gt;

&lt;p&gt;I do this conversion several times a month — it’s the core of my &lt;a href="https://shahbazdev.com/blog/figma-to-wordpress/" rel="noopener noreferrer"&gt;Figma-to-WordPress workflow&lt;/a&gt;, and Elementor Pro is my default builder for it. This guide covers the complete process: mapping Figma’s design model to Elementor’s, the step-by-step build sequence, the traps that waste hours, and the settings most tutorials skip.&lt;/p&gt;

&lt;h2&gt;
  
  
  Three Ways to Get From Figma to Elementor
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Method&lt;/th&gt;
&lt;th&gt;How it works&lt;/th&gt;
&lt;th&gt;Speed&lt;/th&gt;
&lt;th&gt;Quality&lt;/th&gt;
&lt;th&gt;Best for&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Manual rebuild&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;You rebuild each section from the Figma inspect panel&lt;/td&gt;
&lt;td&gt;2 to 4 days for 5 pages&lt;/td&gt;
&lt;td&gt;Highest; full control&lt;/td&gt;
&lt;td&gt;Client sites that must be pixel-perfect&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;strong&gt;Converter plugin&lt;/strong&gt; (UiChemy, Figmentor)&lt;/td&gt;
&lt;td&gt;A Figma plugin exports the layout into Elementor&lt;/td&gt;
&lt;td&gt;Fast scaffold, then cleanup&lt;/td&gt;
&lt;td&gt;Needs heavy cleanup&lt;/td&gt;
&lt;td&gt;Quick prototypes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;strong&gt;AI agent + MCP&lt;/strong&gt; (Claude Code with Figma MCP and Elementor MCP)&lt;/td&gt;
&lt;td&gt;The agent reads the Figma frame and creates Elementor drafts&lt;/td&gt;
&lt;td&gt;Fastest first draft&lt;/td&gt;
&lt;td&gt;Good draft; you review and refine&lt;/td&gt;
&lt;td&gt;Teams who want speed without losing editable structure&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Why Figma and Elementor Map Well to Each Other
&lt;/h2&gt;

&lt;p&gt;Elementor Pro’s architecture is closer to Figma’s than any other WordPress builder (see how it compares in my &lt;a href="https://shahbazdev.com/blog/best-wordpress-page-builder/" rel="noopener noreferrer"&gt;best WordPress page builder&lt;/a&gt; guide), which is why this pairing works:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Figma Frames → Elementor Containers.&lt;/strong&gt; Both are rectangular boxes that hold child elements with configurable padding, gap, and direction.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Figma Auto-Layout → Elementor Flexbox.&lt;/strong&gt; Horizontal, vertical, wrap, gap, alignment — the controls map almost one-to-one.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Figma Styles/Variables → Elementor Global Colors &amp;amp; Fonts.&lt;/strong&gt; Define once, apply everywhere, change in one place.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Figma Components → Elementor Global Widgets.&lt;/strong&gt; Reusable elements that update across pages when you edit the master.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Figma Breakpoints → Elementor Responsive Controls.&lt;/strong&gt; Desktop, tablet, mobile — both let you adjust layout per breakpoint.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The mapping isn’t perfect — Elementor adds its own markup layer and has conventions Figma doesn’t — but it’s close enough that a designer who thinks in Figma can learn the Elementor translation in a day.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fkjxkggehzh09isbjkok2.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fkjxkggehzh09isbjkok2.webp" alt="Building a page section by section in Elementor using Flexbox Containers to match a Figma design" width="800" height="401"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Before You Open Elementor: Prepare the Figma File
&lt;/h2&gt;

&lt;p&gt;Every hour saved in the build starts here. Before touching WordPress:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Finalize the design.&lt;/strong&gt; Building from a “mostly done” Figma file means rebuilding sections when the final version arrives. Get sign-off first.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Use Figma Styles for every color and font.&lt;/strong&gt; These become your Elementor Global Colors and Global Fonts — one source of truth that prevents a hundred manual overrides.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Name your layers.&lt;/strong&gt; “Hero Section,” not “Frame 47.” You’ll reference these names constantly while building.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Export all assets.&lt;/strong&gt; Icons as SVG, images at 2x, logos in SVG + PNG. Compress everything to WebP before uploading to WordPress — image weight is the #1 speed killer on Elementor sites.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Document interactions.&lt;/strong&gt; Hover states, scroll animations, form behaviors — anything Figma can’t show statically. A one-page spec saves a week of revision emails.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Step 1: Set Up Global Styles in Elementor
&lt;/h2&gt;

&lt;p&gt;This is the most important ten minutes of the entire build. In Elementor, go to &lt;strong&gt;Site Settings → Global Colors&lt;/strong&gt; and define every color from your Figma Style library: primary, secondary, accent, text, background, borders. Then do the same for &lt;strong&gt;Global Fonts&lt;/strong&gt; — heading font, body font, sizes, weights, and line heights matching Figma’s typography tokens.&lt;/p&gt;

&lt;p&gt;Why this matters more than it sounds: every widget in Elementor inherits from these globals. Set them right once and buttons, headings, paragraphs, and links all match the design automatically. Skip this step and you’ll spend the rest of the build manually typing hex codes and font sizes into individual widgets — and changing the brand color later means editing every page by hand.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 2: Build the Header and Footer First
&lt;/h2&gt;

&lt;p&gt;In Elementor’s &lt;strong&gt;Theme Builder&lt;/strong&gt;, create the Header and Footer as global templates with site-wide display conditions. These appear on every page, so building them first means you see the real frame around every section you build afterward — rather than discovering at the end that your content collides with the nav.&lt;/p&gt;

&lt;p&gt;Match the Figma header precisely: logo placement, menu structure, CTA button style, mobile hamburger behavior. Use a Flexbox Container for the header layout — it mirrors Figma’s auto-layout nav frame directly.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 3: Rebuild Each Page Section by Section
&lt;/h2&gt;

&lt;p&gt;Open the Figma file on one screen, Elementor on the other. Work top-to-bottom through the page:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Create a Container for each Figma section.&lt;/strong&gt; Use Elementor’s Flexbox Container — set direction (row/column), gap, padding, and alignment to match Figma’s auto-layout settings from the inspect panel.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Add widgets inside the container.&lt;/strong&gt; Heading, Text Editor, Image, Button — Elementor’s widget library covers most Figma elements. For complex layouts, nest containers inside containers, just like nested frames in Figma.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Match spacing from Figma’s inspect panel.&lt;/strong&gt; Padding, margin, and gap values — copy them exactly. The difference between “looks close” and “matches the design” is almost always spacing, not anything harder.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Check responsive immediately.&lt;/strong&gt; After building each section, switch to tablet and mobile views and adjust. Don’t save responsive for a “final pass” — that’s how you end up with six sections on top of a broken mobile foundation.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Step 4: Wire Dynamic Content
&lt;/h2&gt;

&lt;p&gt;Anything that repeats or changes — blog posts, team members, testimonials, portfolio items — should come from WordPress’s CMS, not be hardcoded in Elementor widgets. Set up Custom Post Types (with ACF or native custom fields), then use Elementor’s Dynamic Tags and Loop Builder to pull content into templates.&lt;/p&gt;

&lt;p&gt;This is what makes the site &lt;em&gt;maintainable&lt;/em&gt; after you hand it off. A client who can add a team member by filling in fields is self-sufficient; a client who has to open the Elementor builder and copy-paste a section is a support ticket waiting to happen.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 5: Optimize and Hand Off
&lt;/h2&gt;

&lt;p&gt;Before launch:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Run PageSpeed Insights.&lt;/strong&gt; Elementor sites need deliberate speed work — lazy-load images, minimize custom CSS, and set up proper caching. My &lt;a href="https://shahbazdev.com/blog/wordpress-slow-loading/" rel="noopener noreferrer"&gt;speed optimization guide&lt;/a&gt; covers the full diagnosis.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Test every form.&lt;/strong&gt; Submit test entries, check email delivery, verify thank-you page redirects.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Check every link.&lt;/strong&gt; Internal links, external links, CTA buttons, menu items — a broken link on launch day is an unforced error.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Set up caching.&lt;/strong&gt; LiteSpeed Cache, WP Rocket, or your host’s built-in solution. My &lt;a href="https://shahbazdev.com/blog/clear-wordpress-cache/" rel="noopener noreferrer"&gt;cache guide&lt;/a&gt; walks through all five layers.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Set the SEO title and meta for every page.&lt;/strong&gt; Rank Math makes this a two-minute job per page — and my &lt;a href="https://shahbazdev.com/blog/what-is-seo-title-in-wordpress/" rel="noopener noreferrer"&gt;SEO title guide&lt;/a&gt; shows exactly how to write titles that rank.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What About Converter Plugins?
&lt;/h2&gt;

&lt;p&gt;Tools like &lt;strong&gt;UiChemy&lt;/strong&gt; and &lt;strong&gt;Figmentor&lt;/strong&gt; promise to convert Figma designs to Elementor layouts automatically. They’ve improved significantly and can save time on the structural scaffold — getting boxes, text, and images roughly positioned. But every project I’ve evaluated still needs substantial manual cleanup: responsive behavior, interactive states, proper widget settings, and CMS wiring all require human judgment.&lt;/p&gt;

&lt;p&gt;My honest recommendation: use converter tools for quick prototypes or as a starting scaffold, then refine manually. For client-facing production sites, the manual section-by-section build produces better results in roughly the same total time, because the cleanup hours on a converted layout often equal the build hours of doing it right from the start.&lt;/p&gt;

&lt;h2&gt;
  
  
  The New AI Workflow: Figma MCP + Elementor MCP + Claude Code
&lt;/h2&gt;

&lt;p&gt;This is the biggest change to the Figma-to-Elementor process in years. MCP (Model Context Protocol) is a standard way to give an AI agent access to a tool. Figma and Elementor now both have official MCP servers, so one agent can read your design on one side and build Elementor pages on the other.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Tool&lt;/th&gt;
&lt;th&gt;What it does in this workflow&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Figma MCP&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Gives the agent the design context of a frame: layout, variables, components and a screenshot. Figma’s own docs describe it as giving AI agents “the design context they need to generate code from your Figma files.”&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Elementor MCP&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Lets the agent create real, editable Elementor pages and sections on your WordPress site. Every generation is saved as a draft, so nothing goes live until you publish it.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Claude Code&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;The AI agent that connects to both, follows your instructions and does the work. Figma and Elementor both list Claude Code as a supported client.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h3&gt;
  
  
  How to Set It Up
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Connect Figma MCP to Claude Code.&lt;/strong&gt; Figma’s recommended remote server runs at &lt;code&gt;https://mcp.figma.com/mcp&lt;/code&gt;. Add it with the command below, then run &lt;code&gt;/mcp&lt;/code&gt; in Claude Code, pick &lt;strong&gt;figma&lt;/strong&gt; and click &lt;strong&gt;Authenticate&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Connect Elementor MCP.&lt;/strong&gt; In WordPress, go to &lt;strong&gt;Elementor → Elementor MCP&lt;/strong&gt; and pick the AI tool you want to connect. Elementor creates an application password and gives you a prompt to paste into Claude Code. Only site admins can do this.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Prepare the site first.&lt;/strong&gt; Set your Global Colors and Global Fonts in Elementor before the agent builds anything, exactly as in Step 1 above. The agent produces much cleaner pages when it can use your globals instead of hardcoded values.
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;claude mcp add --transport http figma https://mcp.figma.com/mcp
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  How to Use It
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;Copy the link to a Figma frame, for example your homepage hero.&lt;/li&gt;
&lt;li&gt;Ask Claude Code to read the frame with Figma MCP and rebuild it as an Elementor page with Elementor MCP, using Flexbox Containers and your Global Colors and Fonts.&lt;/li&gt;
&lt;li&gt;Open the draft in Elementor and check spacing, typography and the tablet and mobile views.&lt;/li&gt;
&lt;li&gt;Repeat section by section, then wire dynamic content and publish when it matches the design.&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  What It Still Can’t Do
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;It drafts, you finish.&lt;/strong&gt; Responsive tweaks, hover states, animations and forms still need a human pass.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Editing existing pages has limits.&lt;/strong&gt; Elementor says the MCP edits existing sites only for its atomic elements and layouts (Editor V4).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Pro widgets need Pro.&lt;/strong&gt; Connecting is free, but Pro elements need an Elementor Pro plan. Custom widgets and bulk content actions need Elementor’s Angie plugin.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Garbage in, garbage out.&lt;/strong&gt; A messy Figma file with unnamed layers and no styles gives the agent nothing clean to work from, so the prep step above matters even more.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;My take: use the AI workflow to get the first 70% of each page down fast, then do the last 30% by hand. That’s where the design accuracy and the client-friendly editing come from.&lt;/p&gt;

&lt;h2&gt;
  
  
  Common Mistakes in Figma-to-Elementor Builds
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Skipping Global Styles.&lt;/strong&gt; The single most expensive shortcut — every widget gets hardcoded values, and the first brand-color change becomes a site-wide scavenger hunt.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Using Sections instead of Containers.&lt;/strong&gt; Elementor’s older Section/Column layout is deprecated — Flexbox Containers are the current architecture, and they map much closer to Figma’s auto-layout.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Hardcoding content that should be dynamic.&lt;/strong&gt; If the client will ever change it, it should come from a custom field, not a text widget.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Ignoring mobile until the end.&lt;/strong&gt; Check responsive at every section, not in a final pass. Six sections built on a broken mobile foundation is six sections to redo.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Forgetting performance.&lt;/strong&gt; Elementor adds markup. Without proper caching, image optimization, and asset loading settings, a beautiful build can score 40 on PageSpeed.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Frequently Asked Questions
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Can I convert Figma to Elementor automatically?
&lt;/h3&gt;

&lt;p&gt;Partially. Plugins like UiChemy and Figmentor can convert the structural layout, but the result always needs manual refinement for responsive behavior, interactions, CMS connections, and design precision. No tool produces a finished, production-ready Elementor page from a Figma file.&lt;/p&gt;

&lt;h3&gt;
  
  
  How long does a Figma to Elementor conversion take?
&lt;/h3&gt;

&lt;p&gt;A typical five-page marketing site takes two to four days of focused build time, assuming the Figma file is finalized and assets are exported. Complex sites with custom post types, animations, and multiple templates take longer. The Figma file’s preparation quality is the single biggest timeline variable.&lt;/p&gt;

&lt;h3&gt;
  
  
  Should I use Sections or Containers in Elementor?
&lt;/h3&gt;

&lt;p&gt;Containers. Elementor’s Flexbox Container is the current layout architecture and maps much closer to Figma’s auto-layout model than the older Section/Column system. Sections are being phased out — new builds should use Containers exclusively.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can AI convert Figma to Elementor?
&lt;/h3&gt;

&lt;p&gt;Yes, as a first draft. Connect Figma MCP and Elementor MCP to an AI agent like Claude Code, and it can read a Figma frame and create an editable Elementor draft page. You still review spacing, responsive layouts, interactions and forms by hand before publishing.&lt;/p&gt;

&lt;h2&gt;
  
  
  Wrapping Up
&lt;/h2&gt;

&lt;p&gt;Figma to Elementor is a manual rebuild, not an export — but the two tools map to each other well enough that the process is systematic rather than creative. Set up globals first, build header and footer, reconstruct section by section, wire dynamic content, then optimize. Follow that sequence and the build stays clean, the design stays accurate, and the client gets a site they can actually maintain.&lt;/p&gt;

&lt;p&gt;And if you’d rather hand the conversion to someone who does this every week — Figma to Elementor, responsive builds, speed optimization, the full production workflow — that’s exactly the work I take on. &lt;a href="https://shahbazdev.com/contacts-form/" rel="noopener noreferrer"&gt;Get in touch&lt;/a&gt; and show me the design.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;This guide was first published on &lt;a href="https://shahbazdev.com/blog/figma-to-elementor/" rel="noopener noreferrer"&gt;shahbazdev.com&lt;/a&gt;. I'm Shahbaz Ali, a WordPress and Framer developer. More guides at &lt;a href="https://shahbazdev.com/blog/" rel="noopener noreferrer"&gt;shahbazdev.com&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>wordpress</category>
      <category>webdev</category>
      <category>figma</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>WordPress 404 Error: How to Fix It (8 Fixes That Work)</title>
      <dc:creator>Shahbaz Ali</dc:creator>
      <pubDate>Thu, 03 Dec 2026 20:14:26 +0000</pubDate>
      <link>https://dev.to/shahbaz_ali_d259299f566fd/wordpress-404-error-how-to-fix-it-8-fixes-that-work-2k9c</link>
      <guid>https://dev.to/shahbaz_ali_d259299f566fd/wordpress-404-error-how-to-fix-it-8-fixes-that-work-2k9c</guid>
      <description>&lt;p&gt;&lt;strong&gt;Quick answer:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A WordPress 404 error means the server couldn’t map the URL to any content. If every page except the homepage returns 404, go to &lt;strong&gt;Settings → Permalinks&lt;/strong&gt; and click &lt;strong&gt;Save Changes&lt;/strong&gt; to rebuild the rewrite rules. That fixes most cases. If only one page is missing, it was trashed or its slug changed, so add a 301 redirect. After any fix, purge your page cache, because caches like LiteSpeed store 404 responses too.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;This guide is part of my &lt;a href="https://shahbazdev.com/blog/common-wordpress-errors/" rel="noopener noreferrer"&gt;complete guide to fixing common WordPress errors&lt;/a&gt; — the hub that maps every common error to its fix.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Match Your 404 Pattern to the Cause First
&lt;/h2&gt;

&lt;p&gt;Most 404 guides hand you eight fixes and let you try them in order. That wastes time, because &lt;em&gt;where&lt;/em&gt; the 404 shows up tells you almost exactly what broke. Find your pattern in this table, then jump to the matching fix.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Where the 404 appears&lt;/th&gt;
&lt;th&gt;Most likely cause&lt;/th&gt;
&lt;th&gt;Go to&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Every page except the homepage&lt;/td&gt;
&lt;td&gt;Rewrite rules lost: permalinks, .htaccess, mod_rewrite or Nginx try_files&lt;/td&gt;
&lt;td&gt;Fix 1 to Fix 4&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;One page or post&lt;/td&gt;
&lt;td&gt;Slug changed or the page was trashed&lt;/td&gt;
&lt;td&gt;Fix 5&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;wp-admin or wp-login.php&lt;/td&gt;
&lt;td&gt;A security plugin renamed the login URL&lt;/td&gt;
&lt;td&gt;Fix 6&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Images and files in /wp-content/uploads/&lt;/td&gt;
&lt;td&gt;File missing or wrong path after a migration&lt;/td&gt;
&lt;td&gt;Fix 7&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Everything, right after a migration&lt;/td&gt;
&lt;td&gt;Wrong siteurl/home, missing .htaccess, or AllowOverride off&lt;/td&gt;
&lt;td&gt;Fix 7, then Fix 2 and Fix 3&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Fixed, but visitors still see the 404&lt;/td&gt;
&lt;td&gt;The 404 page itself is cached&lt;/td&gt;
&lt;td&gt;Fix 8&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The homepage-works-but-nothing-else pattern is the giveaway for rewrite problems. The homepage loads &lt;code&gt;index.php&lt;/code&gt; directly, so it doesn’t need a rewrite rule. Every pretty URL like &lt;code&gt;/blog/my-post/&lt;/code&gt; does, and without the rule the server looks for a real folder by that name, finds nothing and returns 404.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fgjut80ebat2kuj0i624i.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fgjut80ebat2kuj0i624i.webp" alt="Curved monitor in a dark studio showing the words NOT FOUND, the page-not-found message behind a WordPress 404 error" width="800" height="447"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Fix 1: Resave Your Permalinks to Flush the Rewrite Rules
&lt;/h2&gt;

&lt;p&gt;Go to &lt;strong&gt;Settings → Permalinks&lt;/strong&gt; and click &lt;strong&gt;Save Changes&lt;/strong&gt; without changing anything. Then reload a page that was returning 404.&lt;/p&gt;

&lt;p&gt;Here’s why this works, straight from WordPress core. The file behind that screen, &lt;code&gt;wp-admin/options-permalink.php&lt;/code&gt;, calls &lt;code&gt;flush_rewrite_rules()&lt;/code&gt; every time the page loads. That function deletes the stored rules, rebuilds them from every registered post type and taxonomy, and on Apache tries to rewrite the WordPress block in &lt;code&gt;.htaccess&lt;/code&gt;. So simply opening the Permalinks screen already flushes the rules; clicking Save also writes the structure you picked.&lt;/p&gt;

&lt;p&gt;Try this first. It’s harmless, takes ten seconds, and fixes the most common trigger: a plugin that registered a custom post type (portfolio, products, events) without flushing rules, so its URLs 404 until something rebuilds them.&lt;/p&gt;

&lt;h2&gt;
  
  
  Fix 2: Restore the Default .htaccess File (Apache and LiteSpeed)
&lt;/h2&gt;

&lt;p&gt;If Fix 1 changed nothing, WordPress probably couldn’t write to &lt;code&gt;.htaccess&lt;/code&gt;, or another plugin broke the file. Connect with FTP or your host’s file manager, open &lt;code&gt;.htaccess&lt;/code&gt; in the WordPress root (enable “show hidden files”), and make sure it contains the standard block from the &lt;a href="https://developer.wordpress.org/advanced-administration/server/web-server/httpd/" rel="noopener noreferrer"&gt;WordPress developer docs&lt;/a&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# BEGIN WordPress

RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

# END WordPress
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Leave rules added by caching or security plugins in place, but keep them outside the &lt;code&gt;# BEGIN WordPress&lt;/code&gt; markers, because WordPress overwrites everything between them. If WordPress is installed in a subfolder, change &lt;code&gt;RewriteBase /&lt;/code&gt; and the last line to that folder, for example &lt;code&gt;/blog/&lt;/code&gt; and &lt;code&gt;/blog/index.php&lt;/code&gt;. Rename the old file to &lt;code&gt;.htaccess-old&lt;/code&gt; before replacing it, so you can roll back.&lt;/p&gt;

&lt;h2&gt;
  
  
  Fix 3: Check That mod_rewrite and AllowOverride Are On
&lt;/h2&gt;

&lt;p&gt;A perfect &lt;code&gt;.htaccess&lt;/code&gt; does nothing if Apache ignores it. Two server settings matter: the &lt;code&gt;mod_rewrite&lt;/code&gt; module must be enabled, and the site’s directory block must allow overrides with &lt;code&gt;AllowOverride All&lt;/code&gt;. Fresh VPS installs often ship with &lt;code&gt;AllowOverride None&lt;/code&gt;, which is why a site moved from shared hosting to a new server can 404 on every inner page even though the files are identical.&lt;/p&gt;

&lt;p&gt;On managed hosting you can’t change these yourself, and you shouldn’t need to. If Fix 2 is in place and inner pages still 404, send support one line: “Please confirm mod_rewrite is enabled and AllowOverride All is set for my document root.”&lt;/p&gt;

&lt;h2&gt;
  
  
  Fix 4: Add the try_files Rule on Nginx
&lt;/h2&gt;

&lt;p&gt;Nginx never reads &lt;code&gt;.htaccess&lt;/code&gt;, so Fixes 1 and 2 can’t help there. Saving permalinks updates WordPress’s internal rules, but Nginx still needs to hand unknown URLs to &lt;code&gt;index.php&lt;/code&gt;. That’s one line in the site’s &lt;code&gt;location /&lt;/code&gt; block, as shown in the &lt;a href="https://developer.wordpress.org/advanced-administration/server/web-server/nginx/" rel="noopener noreferrer"&gt;WordPress Nginx docs&lt;/a&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;location / {
    try_files $uri $uri/ /index.php?$args;
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Reload Nginx after the change (&lt;code&gt;sudo nginx -t &amp;amp;&amp;amp; sudo systemctl reload nginx&lt;/code&gt;). Not sure which server you’re on? Run &lt;code&gt;curl -sI https://yoursite.com | grep -i server&lt;/code&gt;. On hosts that put Nginx in front of Apache, the Apache rules from Fix 2 usually still apply.&lt;/p&gt;

&lt;h2&gt;
  
  
  Fix 5: Redirect a Single Missing Page With a 301
&lt;/h2&gt;

&lt;p&gt;When the rest of the site works and one URL 404s, nothing is broken server-side. The page was trashed, unpublished, or its slug changed. Check &lt;strong&gt;Pages → Trash&lt;/strong&gt; and &lt;strong&gt;Posts → Trash&lt;/strong&gt; first; restoring it fixes the 404 instantly.&lt;/p&gt;

&lt;p&gt;If the slug changed, here’s a detail most guides miss. WordPress remembers old slugs for posts and redirects them automatically through &lt;code&gt;wp_old_slug_redirect()&lt;/code&gt;. But the core function skips hierarchical post types, so &lt;strong&gt;pages get no automatic redirect&lt;/strong&gt;. Rename a page from &lt;code&gt;/services/&lt;/code&gt; to &lt;code&gt;/web-services/&lt;/code&gt; and every old link to it 404s.&lt;/p&gt;

&lt;p&gt;Fix it with a 301. In Rank Math, enable the Redirections module, go to &lt;strong&gt;Rank Math → Redirections → Add New&lt;/strong&gt;, enter the old path as the source, the new URL as the destination, and choose 301 Permanent Move. Rank Math’s 404 Monitor module will also log which missing URLs real visitors and bots are hitting, which is a better to-do list than guessing.&lt;/p&gt;

&lt;h2&gt;
  
  
  Fix 6: wp-admin or wp-login 404? Check Your Security Plugin
&lt;/h2&gt;

&lt;p&gt;A 404 on &lt;code&gt;/wp-admin/&lt;/code&gt; or &lt;code&gt;/wp-login.php&lt;/code&gt; while the front end works is almost always deliberate. Security plugins such as All In One WP Security have a rename-login-page feature that moves the login to a custom URL and returns 404 at the old one. It does its job; you just forgot the new address.&lt;/p&gt;

&lt;p&gt;Check your email for the address the plugin sent when you enabled it. If you can’t find it, connect via FTP, open &lt;code&gt;wp-content/plugins/&lt;/code&gt;, and rename the security plugin’s folder (for example add &lt;code&gt;-off&lt;/code&gt; to the end). WordPress deactivates it, the default login comes back, and you can log in, rename the folder back, reactivate the plugin and note the custom URL this time.&lt;/p&gt;

&lt;h2&gt;
  
  
  Fix 7: Fix Image and Upload 404s After a Migration
&lt;/h2&gt;

&lt;p&gt;Broken images are a different problem from broken pages, because image URLs don’t go through WordPress at all. A 404 on &lt;code&gt;/wp-content/uploads/2026/05/photo.webp&lt;/code&gt; means the file isn’t at that path. After a migration, check two things:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;The files moved.&lt;/strong&gt; Open the uploads folder over FTP and confirm the year/month folders exist. Migration plugins sometimes skip large media folders when they hit an upload limit.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The URLs were updated.&lt;/strong&gt; In &lt;strong&gt;Settings → General&lt;/strong&gt;, WordPress Address and Site Address must match the new domain. Image URLs saved inside post content still point to the old domain until you run a search-replace (WP-CLI &lt;code&gt;wp search-replace&lt;/code&gt; or a plugin like Better Search Replace), with a database backup first.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If pages 404 too after the move, the new server is missing the rewrite setup, so go back through Fix 2 and Fix 3. When a migration throws a server error instead of a 404, my &lt;a href="https://shahbazdev.com/blog/http-error-500-wordpress/" rel="noopener noreferrer"&gt;HTTP 500 error guide&lt;/a&gt; covers that side, and the &lt;a href="https://shahbazdev.com/blog/wordpress-error-log/" rel="noopener noreferrer"&gt;WordPress error log guide&lt;/a&gt; shows you where PHP writes the details.&lt;/p&gt;

&lt;h2&gt;
  
  
  Fix 8: Purge the Cache, Because 404 Pages Get Cached Too
&lt;/h2&gt;

&lt;p&gt;This is the step that makes people think their fix failed. I tested it on this site on 31 October 2026 by requesting a page that doesn’t exist:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ curl -sI https://shahbazdev.com/blog/this-page-does-not-exist/
HTTP/2 404
x-litespeed-cache-control: public,max-age=3600
x-litespeed-tag: ...HTTP.404...
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;LiteSpeed Cache tagged the response as a 404 and marked it cacheable for 3,600 seconds. In plain terms: once a visitor hits a missing URL, LiteSpeed keeps serving that 404 for up to an hour, even after you publish the page or add the redirect. Your fix is live and visitors still see the error.&lt;/p&gt;

&lt;p&gt;So after every 404 fix, purge. In LiteSpeed it’s &lt;strong&gt;LiteSpeed Cache → Toolbox → Purge All&lt;/strong&gt;; if you use Cloudflare, purge that URL there too. Then test with a cache-buster such as &lt;code&gt;?v=123&lt;/code&gt; on the end of the URL to see what the server returns right now. My guide to &lt;a href="https://shahbazdev.com/blog/clear-wordpress-cache/" rel="noopener noreferrer"&gt;clearing every WordPress cache layer&lt;/a&gt; covers the rest.&lt;/p&gt;

&lt;h2&gt;
  
  
  Frequently Asked Questions
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Why does my WordPress site show a 404 error on every page except the homepage?
&lt;/h3&gt;

&lt;p&gt;The rewrite rules that turn pretty URLs into WordPress queries are missing or ignored. The homepage loads index.php directly, so it still works. Go to Settings → Permalinks and click Save Changes. If that doesn’t help, restore the default .htaccess block on Apache or LiteSpeed, or add try_files $uri $uri/ /index.php?$args; on Nginx.&lt;/p&gt;

&lt;h3&gt;
  
  
  Do 404 errors hurt SEO?
&lt;/h3&gt;

&lt;p&gt;A 404 on a URL that never had value is normal and doesn’t hurt the rest of the site. The cost comes from 404s on pages that had backlinks, rankings or internal links pointing at them: that value is lost until you restore the page or 301-redirect it to the closest replacement.&lt;/p&gt;

&lt;h3&gt;
  
  
  Why do I still see the 404 after fixing it?
&lt;/h3&gt;

&lt;p&gt;Your page cache is serving the old 404. On this site, LiteSpeed Cache marked a 404 response cacheable for 3,600 seconds, so a fixed URL can keep showing the error for up to an hour. Purge the cache (and Cloudflare, if you use it), then test with a cache-buster like ?v=123.&lt;/p&gt;

&lt;h3&gt;
  
  
  Does WordPress redirect a page automatically when I change its slug?
&lt;/h3&gt;

&lt;p&gt;For posts, yes: WordPress stores the old slug and wp_old_slug_redirect() sends visitors to the new URL. For pages and other hierarchical post types, no. The core function skips them, so add a 301 redirect yourself, for example in Rank Math → Redirections.&lt;/p&gt;

&lt;h3&gt;
  
  
  Why does wp-admin show a 404 error?
&lt;/h3&gt;

&lt;p&gt;Usually a security plugin renamed the login URL, and the old wp-login.php and wp-admin addresses now return 404 on purpose. Find the custom URL in the plugin’s setup email, or rename the plugin’s folder in wp-content/plugins over FTP to deactivate it and get the default login back.&lt;/p&gt;

&lt;h2&gt;
  
  
  Wrapping Up
&lt;/h2&gt;

&lt;p&gt;Read the pattern before you touch anything. Site-wide 404s are a rewrite problem: resave permalinks, then check .htaccess, mod_rewrite or Nginx. A single 404 needs a restore or a 301. A wp-admin 404 is your security plugin doing its job. Whatever you fix, purge the cache afterwards so visitors see it.&lt;/p&gt;

&lt;p&gt;If the 404s survive all eight fixes, or they started after a migration you’d rather not untangle yourself, &lt;a href="https://shahbazdev.com/contacts-form/" rel="noopener noreferrer"&gt;get in touch&lt;/a&gt; and I’ll take a look.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;This guide was first published on &lt;a href="https://shahbazdev.com/blog/wordpress-404-error/" rel="noopener noreferrer"&gt;shahbazdev.com&lt;/a&gt;. I'm Shahbaz Ali, a WordPress and Framer developer. More guides at &lt;a href="https://shahbazdev.com/blog/" rel="noopener noreferrer"&gt;shahbazdev.com&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>wordpress</category>
      <category>webdev</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>WordPress Slow Server Response Time: How to Fix TTFB (9 Fixes)</title>
      <dc:creator>Shahbaz Ali</dc:creator>
      <pubDate>Thu, 03 Dec 2026 20:13:16 +0000</pubDate>
      <link>https://dev.to/shahbaz_ali_d259299f566fd/wordpress-slow-server-response-time-how-to-fix-ttfb-9-fixes-5dkm</link>
      <guid>https://dev.to/shahbaz_ali_d259299f566fd/wordpress-slow-server-response-time-how-to-fix-ttfb-9-fixes-5dkm</guid>
      <description>&lt;p&gt;&lt;strong&gt;Quick answer:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Slow server response time means WordPress takes too long to build the HTML before the first byte goes out. Lighthouse flags it when the server takes more than 600 ms, and web.dev rates a TTFB of 0.8 seconds or less as good. The biggest fix is a page cache that actually serves hits. After that, check your hosting and PHP workers, autoloaded options, WP-Cron, external HTTP calls, PHP version, object cache and slow database queries.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;This guide is part of my &lt;a href="https://shahbazdev.com/blog/common-wordpress-errors/" rel="noopener noreferrer"&gt;complete guide to fixing common WordPress errors&lt;/a&gt; — the hub that maps every common error to its fix.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;This post covers the server side only: the time before the first byte. If the HTML arrives fast and the page is still slow because of images, scripts or fonts, that’s a front-end problem, and my &lt;a href="https://shahbazdev.com/blog/wordpress-slow-loading/" rel="noopener noreferrer"&gt;guide to a slow-loading WordPress site&lt;/a&gt; covers it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Measure Your Real Server Time With One curl Command
&lt;/h2&gt;

&lt;p&gt;PageSpeed Insights gives you one TTFB number, and that number mixes DNS, the TCP connection, the TLS handshake and the time your server spends building the page. Only the last part is WordPress. curl can split them:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;curl -s -o /dev/null -w "dns %{time_namelookup}s connect %{time_connect}s tls %{time_appconnect}s ttfb %{time_starttransfer}s total %{time_total}s\n" https://yoursite.com/some-page/
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;All curl timings count from the start of the request. So &lt;strong&gt;ttfb minus tls&lt;/strong&gt; is roughly the time between the handshake finishing and the first byte arriving: your server’s work plus one network round trip. That’s the number to watch.&lt;/p&gt;

&lt;p&gt;I ran it against one of my own posts on 31 October 2026, three times with the LiteSpeed page cache serving a hit, then three times with the cache bypassed by adding &lt;code&gt;?nocache=&lt;/code&gt; plus a random value to the URL. The test ran from a cloud server through a proxy, which inflates the DNS and connection times, so read the gap between the two rows rather than the absolute values.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Request&lt;/th&gt;
&lt;th&gt;TTFB (3 runs)&lt;/th&gt;
&lt;th&gt;TLS done at&lt;/th&gt;
&lt;th&gt;Server wait (ttfb − tls)&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Cache hit (x-litespeed-cache: hit)&lt;/td&gt;
&lt;td&gt;0.619 / 0.393 / 0.403 s&lt;/td&gt;
&lt;td&gt;0.421 / 0.194 / 0.209 s&lt;/td&gt;
&lt;td&gt;0.194–0.199 s&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Cache miss (x-litespeed-cache: miss)&lt;/td&gt;
&lt;td&gt;0.640 / 0.778 / 0.618 s&lt;/td&gt;
&lt;td&gt;0.148 / 0.153 / 0.157 s&lt;/td&gt;
&lt;td&gt;0.46–0.63 s&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;A cached page left the server in about 0.2 seconds. The same page built fresh by PHP took 0.46 to 0.63 seconds, two to three times longer, on a small, well-tuned site. On a site with heavy plugins and a bloated database, the uncached number is where things fall apart. Run the command a few times with and without a cache-buster on your own site, and check the &lt;code&gt;x-litespeed-cache&lt;/code&gt;, &lt;code&gt;cf-cache-status&lt;/code&gt; or similar header to confirm which one you got.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fu0anx0qcjupmha8le9jn.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fu0anx0qcjupmha8le9jn.webp" alt="Two monitors in a dark studio showing HIT and MISS, comparing a cached and uncached WordPress server response" width="800" height="447"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Causes of Slow Server Response, Ranked
&lt;/h2&gt;

&lt;p&gt;Work down this table in order. The first row is the cheapest to check and usually free to fix, and the gap in my test above shows how much it matters.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Rank&lt;/th&gt;
&lt;th&gt;Cause&lt;/th&gt;
&lt;th&gt;How to confirm it&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;No page cache, or cache bypassed&lt;/td&gt;
&lt;td&gt;Cache header says miss on repeat visits&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;Slow hosting or too few PHP workers&lt;/td&gt;
&lt;td&gt;Uncached server wait stays high even on a blank page; spikes under traffic&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;Autoloaded options bloat&lt;/td&gt;
&lt;td&gt;Site Health warning, or the SQL query in Fix 3&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;WP-Cron running on page loads&lt;/td&gt;
&lt;td&gt;Random slow requests; overdue events in WP Crontrol&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;5&lt;/td&gt;
&lt;td&gt;Slow external HTTP calls&lt;/td&gt;
&lt;td&gt;Query Monitor → HTTP API Calls panel&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;6&lt;/td&gt;
&lt;td&gt;Old PHP version&lt;/td&gt;
&lt;td&gt;Tools → Site Health → Info → Server&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;7&lt;/td&gt;
&lt;td&gt;No persistent object cache&lt;/td&gt;
&lt;td&gt;Site Health recommends one; high query count per page&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;8&lt;/td&gt;
&lt;td&gt;Slow database queries&lt;/td&gt;
&lt;td&gt;Query Monitor → Queries, sorted by time&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Fix 1: Make Sure Your Page Cache Actually Hits
&lt;/h2&gt;

&lt;p&gt;The test above is the whole argument: a hit skips PHP and MySQL entirely. Plenty of sites have a caching plugin installed and still miss on most requests, because something tells the cache to step aside. The usual culprits:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Logged-in users.&lt;/strong&gt; You see uncached pages whenever you’re logged in to wp-admin. Test in a private window, or you’re measuring the wrong thing.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cookies.&lt;/strong&gt; Cart, consent or A/B-testing plugins that set a cookie on every visitor can make the cache treat every visit as unique.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Query strings.&lt;/strong&gt; Ad clicks add &lt;code&gt;?utm_source=&lt;/code&gt;, &lt;code&gt;?gclid=&lt;/code&gt; or &lt;code&gt;?fbclid=&lt;/code&gt;. Unless your cache ignores those parameters, each one is a miss, exactly like the &lt;code&gt;?nocache=&lt;/code&gt; trick I used in the test.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you don’t have a page cache yet, pick one that matches your server: LiteSpeed Cache on LiteSpeed hosting, a host-level cache on managed WordPress hosts, otherwise a plugin. My &lt;a href="https://shahbazdev.com/blog/best-wordpress-caching-plugins/" rel="noopener noreferrer"&gt;comparison of WordPress caching plugins&lt;/a&gt; walks through the choice.&lt;/p&gt;

&lt;h2&gt;
  
  
  Fix 2: Upgrade Hosting or Add PHP Workers
&lt;/h2&gt;

&lt;p&gt;Every uncached request needs a free PHP worker. When all workers are busy, new requests wait in a queue, and that waiting shows up as TTFB even though no code is running. That’s why some sites are fast at 3 a.m. and slow at noon.&lt;/p&gt;

&lt;p&gt;Here’s a quick way to tell hosting from code. Run the uncached curl test against a URL that does almost nothing, such as &lt;code&gt;/wp-login.php&lt;/code&gt;. If even that page has a high server wait, the server is slow or overloaded and no plugin cleanup will save you. If the login page is fast and your content pages are slow, the problem lives in your theme, plugins or database, so keep going down this list before you pay for a bigger plan.&lt;/p&gt;

&lt;h2&gt;
  
  
  Fix 3: Trim Autoloaded Options
&lt;/h2&gt;

&lt;p&gt;WordPress loads every autoloaded option from &lt;code&gt;wp_options&lt;/code&gt; on every uncached request, whether the page needs it or not. Uninstalled plugins often leave their autoloaded settings behind. Since WordPress 6.6, Site Health warns when the total passes 800 KB (the core default threshold is 800,000 bytes), and the &lt;code&gt;autoload&lt;/code&gt; column now uses the values &lt;code&gt;on&lt;/code&gt;, &lt;code&gt;auto-on&lt;/code&gt; and &lt;code&gt;auto&lt;/code&gt; alongside the older &lt;code&gt;yes&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Check the total in phpMyAdmin or with &lt;code&gt;wp db query&lt;/code&gt; (change the &lt;code&gt;wp_&lt;/code&gt; prefix if yours differs):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;SELECT SUM(LENGTH(option_value)) AS autoload_bytes
FROM wp_options
WHERE autoload IN ('yes', 'on', 'auto-on', 'auto');
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then find the biggest offenders:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;SELECT option_name, LENGTH(option_value) AS bytes
FROM wp_options
WHERE autoload IN ('yes', 'on', 'auto-on', 'auto')
ORDER BY bytes DESC
LIMIT 15;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Options left by plugins you’ve removed can usually be deleted. For options that belong to active plugins, don’t delete them; set their autoload to &lt;code&gt;off&lt;/code&gt; only if you know the plugin reads them on demand, and take a database backup first. Expired transients sitting in the list are safe to clear.&lt;/p&gt;

&lt;h2&gt;
  
  
  Fix 4: Stop WP-Cron From Running on Page Loads
&lt;/h2&gt;

&lt;p&gt;By default, WordPress checks its scheduled tasks during normal page requests and fires overdue ones in the background. A backlog of heavy jobs (backups, imports, email queues) adds load at random moments, so some visitors get a slow response and others don’t. Move cron to the server: add &lt;code&gt;define( 'DISABLE_WP_CRON', true );&lt;/code&gt; to &lt;code&gt;wp-config.php&lt;/code&gt;, then create a real cron job that calls &lt;code&gt;wp-cron.php&lt;/code&gt; every five minutes. Never do the first step without the second. I walk through both steps in my &lt;a href="https://shahbazdev.com/blog/wordpress-missed-schedule/" rel="noopener noreferrer"&gt;missed schedule guide&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Fix 5: Find Slow External HTTP Calls
&lt;/h2&gt;

&lt;p&gt;Some plugins call an outside API while building the page: license checks, social counters, currency rates, remote fonts fetched in PHP. Your TTFB then includes someone else’s server. Install &lt;a href="https://wordpress.org/plugins/query-monitor/" rel="noopener noreferrer"&gt;Query Monitor&lt;/a&gt;, load a slow page, and open the &lt;strong&gt;HTTP API Calls&lt;/strong&gt; panel. Any call made on a front-end request is a suspect; any call taking hundreds of milliseconds is the culprit. Replace the plugin, or ask its developer to cache the response.&lt;/p&gt;

&lt;h2&gt;
  
  
  Fix 6: Update PHP
&lt;/h2&gt;

&lt;p&gt;WordPress.org recommends PHP 8.3 or greater. Newer PHP versions generally run WordPress faster, and versions past end-of-life stop getting security fixes. Check your version under &lt;strong&gt;Tools → Site Health → Info → Server&lt;/strong&gt; and switch it in your hosting panel. Test on staging first: old plugins are the usual reason an upgrade breaks a site, and my &lt;a href="https://shahbazdev.com/blog/wordpress-critical-error/" rel="noopener noreferrer"&gt;critical error guide&lt;/a&gt; covers what to do if it does.&lt;/p&gt;

&lt;h2&gt;
  
  
  Fix 7: Add a Persistent Object Cache
&lt;/h2&gt;

&lt;p&gt;WordPress already caches query results in memory, but only for the length of one request. A persistent object cache such as Redis or Memcached keeps those results between requests, so uncached pages and wp-admin stop re-running the same queries. It helps most on WooCommerce, membership and other logged-in-heavy sites where the page cache can’t help. Many hosts offer Redis with one click; turn it on, then connect it with your caching plugin or a Redis object cache plugin.&lt;/p&gt;

&lt;h2&gt;
  
  
  Fix 8: Find Slow Database Queries With Query Monitor
&lt;/h2&gt;

&lt;p&gt;With Query Monitor active, load the slow page while logged in and open &lt;strong&gt;Queries&lt;/strong&gt;. Sort by time and look at the &lt;em&gt;Component&lt;/em&gt; column: it tells you which plugin or theme ran each query. One plugin running a slow query on every page, or a page making hundreds of queries, points straight at what to replace or reconfigure. The same panel is how I’d start on a &lt;a href="https://shahbazdev.com/blog/wordpress-admin-slow/" rel="noopener noreferrer"&gt;slow WordPress admin&lt;/a&gt; too.&lt;/p&gt;

&lt;h2&gt;
  
  
  Fix 9: Serve Cached Pages From the Edge
&lt;/h2&gt;

&lt;p&gt;Once the server is fast, distance is what’s left. A visitor on the other side of the world from your server pays several network round trips before the first byte. An edge cache (Cloudflare with HTML caching, or QUIC.cloud on LiteSpeed hosting) stores the cached HTML in data centers close to visitors, so a hit never travels to your origin at all. Do this last: an edge cache in front of a slow, cache-missing origin only hides the problem for pages that happen to be cached.&lt;/p&gt;

&lt;p&gt;One more thing after any change: &lt;a href="https://shahbazdev.com/blog/clear-wordpress-cache/" rel="noopener noreferrer"&gt;clear the cache layers&lt;/a&gt; and rerun the curl test, both hit and miss, so you compare like with like.&lt;/p&gt;

&lt;h2&gt;
  
  
  Frequently Asked Questions
&lt;/h2&gt;

&lt;h3&gt;
  
  
  What is a good server response time for WordPress?
&lt;/h3&gt;

&lt;p&gt;web.dev rates a TTFB of 0.8 seconds or less as good and over 1.8 seconds as poor. Lighthouse fails its server response audit when the main document takes more than 600 ms. A cached WordPress page should come in well under both; in my test a LiteSpeed cache hit left the server in about 0.2 seconds.&lt;/p&gt;

&lt;h3&gt;
  
  
  How do I check server response time in WordPress?
&lt;/h3&gt;

&lt;p&gt;Run curl with -w and the time_appconnect and time_starttransfer variables. TTFB minus the TLS time is roughly your server’s work plus one round trip. Run it with and without a cache-buster query string to see cached and uncached times, and check the cache header to confirm which one you got.&lt;/p&gt;

&lt;h3&gt;
  
  
  Why is my WordPress TTFB slow even with a caching plugin?
&lt;/h3&gt;

&lt;p&gt;Your requests are probably missing the cache. Being logged in, cookies set on every visitor, and tracking query strings like utm_source or gclid all bypass most page caches. Test in a private window and check the cache header. If it says miss on repeat visits, fix the bypass before anything else.&lt;/p&gt;

&lt;h3&gt;
  
  
  Does autoloaded data slow down WordPress?
&lt;/h3&gt;

&lt;p&gt;Yes, on every uncached request, because WordPress loads all autoloaded options at startup. Since WordPress 6.6, Site Health warns when the total passes 800 KB. Sum LENGTH(option_value) for rows where autoload is yes, on, auto-on or auto to see your total, then remove leftovers from deleted plugins.&lt;/p&gt;

&lt;h3&gt;
  
  
  Will better hosting fix slow server response time?
&lt;/h3&gt;

&lt;p&gt;Only if hosting is the bottleneck. Test the uncached server wait on a light URL like /wp-login.php. If that’s slow too, the server is underpowered or short on PHP workers. If it’s fast while content pages are slow, the cause is plugins, theme or database, and a bigger plan won’t fix it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Wrapping Up
&lt;/h2&gt;

&lt;p&gt;Measure before you change anything: run the curl test, subtract TLS from TTFB, and compare a cache hit with a miss. If the hit is fast and real visitors are slow, they’re missing the cache. If the miss is slow, work down the ranked list, starting with hosting and autoloaded options, and retest after each change.&lt;/p&gt;

&lt;p&gt;If you’d rather hand the diagnosis to someone who does this every week, &lt;a href="https://shahbazdev.com/contacts-form/" rel="noopener noreferrer"&gt;get in touch&lt;/a&gt; and I’ll find where your server time is going.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;This guide was first published on &lt;a href="https://shahbazdev.com/blog/wordpress-slow-server-response-time/" rel="noopener noreferrer"&gt;shahbazdev.com&lt;/a&gt;. I'm Shahbaz Ali, a WordPress and Framer developer. More guides at &lt;a href="https://shahbazdev.com/blog/" rel="noopener noreferrer"&gt;shahbazdev.com&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>wordpress</category>
      <category>webdev</category>
      <category>tutorial</category>
    </item>
  </channel>
</rss>
