Introduction
Managing content on a WordPress site can be time-consuming — writing blog posts, crafting landing pages, updating static content, and keeping everything fresh. Claude can dramatically speed up this process by reading your content directly from a document and publishing it to WordPress on your behalf — no manual copy-pasting required.
This guide walks you through connecting your WordPress site to Claude first, and then covers two methods to publish content directly from a document.
Step 1: Connect Your WordPress Site with Application Credentials
Before Claude can publish anything to your site, you need to generate an Application Password in WordPress and share those credentials with Claude. This is a one-time setup.
Generate your Application Password
- Log in to your WordPress Admin dashboard
- Go to Users → Profile
- Scroll down to the Application Passwords section
- In the “New Application Password Name” field, type a recognisable name such as “Claude Integration”
- Click Add New Application Password
- WordPress will display the password once — copy it immediately and save it somewhere safe, as you will not be able to see it again
- Note down your WordPress site URL and your WordPress username alongside the password
Connect the site to Claude using this prompt
Once you have your credentials, open Claude and paste the following prompt to register your site:
Prompt to use:
I want to connect my WordPress site to you so you can publish content on my behalf using the REST API.
Here are my credentials:
WordPress Site URL: https://yoursite.com
Username: your_username
Application Password: your_application_password
Please confirm you can connect to my site and have the necessary access to create posts, manage categories, and publish content as drafts.
Claude will verify the connection by making a test call to your WordPress REST API and confirm that everything is set up correctly before proceeding.
Step 2: Choose How to Share Your Content
Once your site is connected, you can share content with Claude in one of two ways depending on where your document lives.
Method 1: Share a Local Document with Claude
This method works when your content is saved as a file on your computer — such as a Word document (.docx), a plain text file (.txt), or a PDF.
How it works:
You upload the document directly to Claude in the chat. Claude reads the content, structures it into proper Gutenberg blocks, and publishes it to your WordPress site using the credentials you already shared.
Step-by-step:
- Prepare your content document on your computer
- Open Claude and start a new conversation
- Upload the document using the attachment icon in the chat
- Paste the following prompt after uploading
Prompt to use:
I have uploaded a document with the blog/page content. Please read it and publish it to my WordPress site.
Post Type: Post (or Page)
Post Status: Draft
Follow these instructions when publishing:
- Use proper headings and subheadings throughout — map the main title to H1, section titles to H2, and subsections to H3
- Add all content using Gutenberg blocks — do not paste raw HTML into the editor
- Use a Paragraph block for all body text
- Use Heading blocks for all titles and subheadings
- Use a Code block for any code snippets — never use a Paragraph or HTML block for code
- Use List blocks for bullet points or numbered lists
- Use a Quote block for any pull quotes or callouts
- Assign the post to the category "AI Automation" — if this category does not already exist on the site, create it first before publishing
- Set the post as a Draft for review before going live
Claude will read the document, map the content into the correct Gutenberg blocks, and push it to your WordPress site as a draft.
Method 2: Share a Google Doc with View Access
This method works when your content lives in Google Docs — ideal for teams that collaborate on content before publishing.
How it works:
You share the Google Doc link with Claude with “Anyone with the link can view” permissions enabled. Claude reads the document, structures the content into Gutenberg blocks, and publishes it to your WordPress site.
Step-by-step:
- Open your Google Doc with the blog or page content
- Click Share in the top right corner
- Under General Access, change it to “Anyone with the link”
- Set the role to Viewer
- Click Copy link
- Open Claude and paste the link along with the following prompt
Prompt to use:
Here is a Google Doc with the content I want to publish to WordPress: [paste your Google Doc link here]
Please read the document and publish it to my WordPress site.
Post Type: Post (or Page)
Post Status: Draft
Follow these instructions when publishing:
- Use proper headings and subheadings throughout — map the main title to H1, section titles to H2, and subsections to H3
- Add all content using Gutenberg blocks — do not paste raw HTML into the editor
- Use a Paragraph block for all body text
- Use Heading blocks for all titles and subheadings
- Use a Code block for any code snippets — never use a Paragraph or HTML block for code
- Use List blocks for bullet points or numbered lists
- Use a Quote block for any pull quotes or callouts
- Assign the post to the category "AI Automation" — if this category does not already exist on the site, create it first before publishing
- Set the post as a Draft for review before going live
Claude will access the Google Doc, read the content, structure it into Gutenberg blocks, and push it to your WordPress site as a draft.
Step 3: Review and Publish
Regardless of which method you use, Claude will always publish content as a Draft first. Here is what to do next:
- Log in to your WordPress Admin dashboard
- Go to Posts → All Posts (or Pages → All Pages)
- Find the newly created draft and click to open it
- Review the Gutenberg block structure, headings, and formatting
- Check that the “AI Automation” category has been assigned correctly
- Make any final edits, add featured images if needed, and click Publish
Tips for Best Results
- Keep your Application Password stored securely — treat it like a password and do not share it publicly
- Always set the post status to Draft on first publish so you can review formatting before it goes live
- Make sure your Google Doc is set to “Anyone with the link — Viewer” before sharing with Claude
- If your document contains images, note their placement in the prompt so Claude knows to flag where they should be inserted manually
- For long documents, use clear headings and section breaks — this helps Claude map the structure accurately into Gutenberg blocks
- Double-check the category name in your prompt to ensure Claude creates or matches it correctly in WordPress
Final Thoughts
With your WordPress site connected once via Application Passwords, publishing content becomes as simple as uploading a document or sharing a link. Claude handles the reading, structuring, and block formatting — all you need to do is review the draft and hit Publish.
If you ever need to revoke Claude’s access to your WordPress site, go to Users → Profile → Application Passwords and delete the “Claude Integration” entry at any time.
Leave a Reply