Skip to content
BLOG AI home

How to Publish AI Content to WordPress Without Breaking Formatting

7 min read
Small business owner checking an AI blog post in the WordPress editor before publishing

Most AI blog posts don't break when they're written. They break on the way into WordPress: headings turn into bold text, images vanish for visitors, and the SEO title and meta description boxes stay empty. The fix is a fixed order of work. Get the draft into a clean format, paste it into the block editor, upload images to your own media library, fill the SEO fields by hand, then check the live page before you call it done.

Here's how to publish AI content to WordPress in that order, whether you paste drafts in yourself or use a connected tool.

Key takeaways

  • Paste AI drafts into the WordPress block editor, not the classic editor, which can carry hidden span tags from Google Docs.
  • Images pasted from a Google Doc aren't in your media library; delete them and upload the files yourself or they'll break for visitors.
  • Pasting never fills your SEO plugin's SEO title, meta description or slug, so add them by hand before publishing.
  • If an AI tool publishes for you, give it its own Author-level user and Application Password, and send posts as drafts first.
  • Always check the live post in a private window: images load, the tab title is right and the meta description is in the source.

What you need before you publish AI content to WordPress

  • A finished, edited draft. Publishing is the wrong moment to fact-check. Run it through an editing checklist for AI drafts first.
  • The SEO fields written out: the title Google shows (the "SEO title"), a meta description (the short summary under the blue link in search results), a slug (the end of the URL) and a category.
  • Image files on your computer, with sensible names and a line of alt text for each. Alt text is a written description of an image for people and machines that can't see it.
  • An SEO plugin such as Yoast SEO, Rank Math or All in One SEO, so you have somewhere to put the SEO title and meta description.

Step 1: Paste into the block editor, not the classic editor

Copy the draft from Google Docs or Word and paste it into a new post in the block editor (Gutenberg). WPBeginner's testing of copy and paste found the block editor "will automatically use the correct heading sizes and blocks" for text pasted from Google Docs.

The classic editor is less forgiving. The same guide found Google Docs text that looked fine there but carried hidden code, such as <span style="font-weight: 400;"> tags, that had to be removed by hand. WPBeginner notes unnecessary formatting adds to page size, which slows the page down.

If your AI tool gives you Markdown (text with # for headings and ** for bold), paste it into a Google Doc or Markdown preview first, so you're copying formatted text, not symbols.

How to tell it worked: open the List View in the editor toolbar. You should see Heading, Paragraph and List blocks, not one giant Classic block.

Step 2: Fix the heading levels

WordPress uses your post title as the page's main heading. So the body should start at Heading 2 (H2), with Heading 3 (H3) for sub-points under it.

AI drafts often repeat the title as an H1 at the top or skip from H2 to H4. Delete the duplicate title and click each heading block to check its level in the block toolbar.

How to tell it worked: List View shows one tidy outline, H2s with H3s nested under them, and nothing above H2.

Step 3: Upload images to your media library

This is the step that bites people later. When you paste a Google Doc that contains images, they appear in the editor, but WPBeginner warns the image "has not been uploaded to your WordPress media library" and is being shown from your Google Drive. Publish like that and the images break for your visitors.

Delete any pasted images. Then, for each one:

  1. Rename the file before upload. Google's image guidance suggests short, descriptive filenames, giving my-new-black-kitten.jpg as better than IMG00023.JPG.
  2. Add an Image block where it belongs and upload the file from your computer.
  3. Fill in the alt text field in the block settings. Google calls alt text "the most important attribute" for image metadata, and asks you not to stuff it with keywords. Describe what's in the picture.
  4. Set the featured image in the post sidebar, which your theme shows on blog index pages.

How to tell it worked: right-click an image in the preview and open it in a new tab. The address should start with your own domain and /wp-content/uploads/.

Step 4: Fill in the SEO fields yourself

Pasting text never fills these in. Google notes a CMS such as WordPress may have a settings page for meta tags; in practice, that's your SEO plugin. Scroll to your SEO plugin's panel below the editor (or in the sidebar) and add:

  • SEO title: the version written for search results, which can be shorter than your on-page title.
  • Meta description: Google says there's no limit on how long a meta description can be, but the snippet is cut off as needed to fit the screen. Put the useful part first.
  • Slug: trim it to a few meaningful words. WordPress builds a long one from the full title by default.
  • Category and tags, so the post shows up in the right archive pages.

How to tell it worked: most SEO plugins show a search-result preview. Check the title and description read well there, not just in the editor.

Step 5: Add internal and external links

Add two to five links to your own related posts (our AI blogging workflow covers picking them at the planning stage), using words that describe the destination rather than "click here". Then click every link the AI wrote. Drafts sometimes contain links that look right but lead to 404 pages or to the wrong page entirely.

Step 6: Preview, publish, then check the live page

Use Preview on desktop and mobile. Look for tables that run off the screen, lists that turned into paragraphs, and stray symbols such as ** or ## left over from Markdown.

Publish, then open the live post in a private browser window, where you're not logged in. Check that:

  • every image loads
  • the tab title matches your SEO title
  • the meta description is in the page source (right-click, View Page Source, search for description)

Once it's live, track what it does in Search Console. Our guide to measuring blog performance after you publish explains what to look at and when.

Publishing automatically from an AI tool

If you'd rather skip copy and paste, most AI tools publish through the WordPress REST API (the route other software uses to create posts on your site). They usually connect with an Application Password. WordPress added these in version 5.6. You can generate, view or revoke them from the Edit User page, and they're only available on sites served over HTTPS.

Two habits keep this safe:

  • Use a separate user with the Author role for the tool, not your admin account. If you stop using the tool, revoke its Application Password and nothing else changes.
  • Send posts as drafts first. Then run steps 2 to 6 on the draft before it goes live.

Be clear about what automation can't promise. Whether images land in your media library and whether the SEO title and meta description reach your SEO plugin depends on the tool and the plugin. Blog AI publishes direct to WordPress, and we'd still tell you to open the first few posts and check every field by eye. If a field is empty, fill it in by hand.

Don't worry that publishing AI-assisted posts will get you penalised on its own. Google's policies target unhelpful content, not the tool that wrote it. We cover that in what Google's guidelines actually say about AI content.

The short version

Formatting, images and SEO fields break at the handover, not in the writing, so the handover needs its own checks. For your next post, paste into the block editor and open the List View before you do anything else: if you see proper Heading and List blocks, you're past the most common problem.

Frequently asked questions

Why do my images disappear after I publish a post pasted from Google Docs?

Pasted images can look fine in the editor while still being shown from your Google Drive rather than your own site. Delete them, upload the files to the WordPress media library, and add alt text.

Should I paste AI content into the classic editor or the block editor?

Use the block editor. It turns pasted headings and lists into proper blocks, while the classic editor can carry hidden formatting code from Google Docs that you then have to strip out by hand.

How long should a meta description be?

Google says there's no length limit, but it cuts the snippet down to fit the screen. Put the most useful words at the start so they survive the cut.

Is it safe to let an AI tool publish straight to my WordPress site?

It can be, if you connect it with its own Application Password on a separate Author-level user and send posts as drafts. You can revoke that password from the Edit User page at any time.

Researched and drafted with Blog AI, checked against its sources, and edited before publishing. How the checks work

Stop guessing what to write next

Blog AI turns your Search Console data into a ranked list of posts to write and fix.

Start free