title: "WordPress Integration" description: "Connect iContentForge to your WordPress site using the REST API and Application Passwords for automated content publishing." section: "CMS Integrations"
WordPress Integration
iContentForge connects directly to your WordPress site using the official WordPress REST API and Application Passwords. This allows you to automatically publish generated articles as posts, complete with categories, tags, and featured images.
Prerequisites
Before you begin, ensure your WordPress site meets the following requirements:
- WordPress Version: 5.6 or higher (for Application Passwords feature).
- Site Accessibility: Your site must be publicly accessible over HTTPS (recommended) or HTTP.
- Permissions: You need administrator access to your WordPress dashboard to generate an Application Password.
Step-by-Step Connection Guide
Follow these steps to connect your WordPress site to iContentForge.
Step 1: Generate an Application Password in WordPress
- Log in to your WordPress Admin Dashboard.
- Navigate to Users Profile (or Edit Profile).
- Scroll down to the Application Passwords section.
- Enter a descriptive name for the connection (e.g., "iContentForge") and click Add New Application Password.
- WordPress will generate a password in the format
xxxx xxxx xxxx xxxx xxxx xxxx(24 characters with spaces). Copy this password immediately, as it will not be displayed again.
Important: The Application Password is shown only once. Copy it exactly as displayed, including the spaces between character groups. Do not remove the spaces they are part of the password format and iContentForge preserves them correctly during authentication.
If you accidentally copy it without spaces or enter an incorrect value, you will receive a 401 Unauthorized error. Simply generate a new Application Password and try again.
Step 2: Configure Connection in iContentForge
- In your iContentForge project, go to Settings CMS Integration.
- Select WordPress from the list of CMS providers.
- Fill in the connection details:
- Base URL: The full URL of your WordPress site (e.g.,
https://yourwebsite.com). Do not include a trailing slash. - Username: Your WordPress username (usually the one you use to log into the dashboard).
- Application Password: Paste the password you copied from WordPress in Step 1. The expected format is
xxxx xxxx xxxx xxxx xxxx xxxx(24 alphanumeric characters, spaces allowed).
- Base URL: The full URL of your WordPress site (e.g.,
- Click the Verify Connection button.
Step 3: Select Default Category & Save
- Upon successful verification, iContentForge will fetch a list of categories from your WordPress site.
- Select a Default Category from the dropdown menu. All articles published through this connection will be assigned to this category unless specified otherwise in the article generation settings.
- Click Save Configuration to finalize the connection.
Your WordPress site is now connected. Articles set to "Publish" will be automatically pushed to your site according to your project's drip-feed schedule.
Troubleshooting Common Errors
If you encounter issues during verification, here are the most common causes and solutions.
Error 401: Unauthorized
This means the credentials are incorrect or the Application Password wasn't set up properly.
- Check your Application Password format. WordPress generates passwords in the format
xxxx xxxx xxxx xxxx xxxx xxxxthat is 24 alphanumeric characters with spaces between every 4 characters. The total length without spaces should be exactly 24 characters. - **Did you copy the full password ** WordPress only shows the password once. If it was partially copied, generate a new Application Password.
- Check your Username. Use the exact WordPress username shown in Users > All Users, not your display name or email.
Error 404: Not Found
This usually indicates an incorrect Base URL or that the WordPress REST API is not accessible.
- Solution: Verify your Base URL is correct (no trailing slash). Ensure your site is live. Test the API endpoint directly by visiting
{your-base-url}/wp-json/wp/v2/categoriesin your browser. You should see JSON data.
SSL / HTTPS Issues
If your site uses a self-signed certificate or has SSL problems, the API call may fail.
- Solution: For development sites with self-signed certificates, this may cause a block. For live sites, ensure your SSL certificate is valid and properly installed. You can temporarily use
http://for testing if your site allows it, but this is not recommended for production.
Connection Timeout
iContentForge cannot reach your WordPress site.
- Solution: Check if your WordPress site is online and not behind firewall rules that block incoming API requests. Some hosting providers may restrict external API calls; you may need to whitelist iContentForge's IP addresses (contact support for IP details).
How Publishing Works
Once connected, the publishing flow is automatic:
- An article generated in iContentForge moves to the Ready status.
- Based on your project's Drip Feed settings (approximately every 5 minutes), the system picks the next ready article.
- iContentForge sends a POST request to your WordPress REST API (
/wp/v2/posts) with the article's title, content (HTML), excerpt, selected category, tags, and featured image. - The article status in iContentForge changes to Published, and you can view it live on your site.
You can override the project's default category for individual articles during the keyword import or article generation phase. Use the Article Settings panel to assign specific categories or tags before publishing.
Next Steps
- Learn how to manage your publishing queue with Drip Feed Scheduling.
- Set up other supported platforms: Ghost Integration.
- Understand the full article lifecycle: Article Statuses & Workflow.