Overview
The WordPress connector uses the WordPress REST API with Application Password authentication to publish articles directly to your WordPress site. It supports:- Full article publishing with HTML formatting
- Category, tag, and author synchronization
- Featured image upload to WordPress Media Library
- Scheduled publishing
- Article updates and deletions
Prerequisites
Before connecting, ensure your WordPress site has:- WordPress 5.6+ (for Application Passwords support)
- REST API enabled (enabled by default)
- SSL certificate (HTTPS) - recommended for security
- User account with Editor or Administrator role
Setup Guide
Step 1: Create an Application Password
- Log in to your WordPress admin dashboard
- Go to Users → Your Profile
- Scroll down to Application Passwords
- Enter a name for the application (e.g., “Skayle”)
- Click Add New Application Password
- Copy the generated password immediately - it won’t be shown again
Step 2: Configure in Skayle
- Go to Settings → Connectors in Skayle
- Select WordPress as your connector type
- Enter your configuration:
| Field | Description | Example |
|---|---|---|
| Site URL | Your WordPress site URL | https://example.com |
| Username | Your WordPress username | admin |
| Application Password | The password from Step 1 | xxxx xxxx xxxx xxxx xxxx xxxx |
| Default Author ID | (Optional) WordPress user ID for posts | 1 |
| Default Category ID | (Optional) Fallback category ID | 1 |
- Click Test Connection to verify
Step 3: Sync Taxonomies
After connecting, sync your existing WordPress taxonomies:- Import from WordPress
- Export to WordPress
Click Sync from CMS to import:
- All categories
- All tags
- All users with author/editor/administrator roles
Configuration Options
API Endpoints Used
The WordPress connector uses these REST API endpoints:| Endpoint | Method | Purpose |
|---|---|---|
/wp-json/wp/v2/posts | POST | Create new post |
/wp-json/wp/v2/posts/{id} | PUT | Update existing post |
/wp-json/wp/v2/posts/{id} | DELETE | Delete post |
/wp-json/wp/v2/categories | GET/POST | Sync categories |
/wp-json/wp/v2/tags | GET/POST | Sync tags |
/wp-json/wp/v2/users | GET | Sync authors |
/wp-json/wp/v2/media | POST | Upload featured images |
Content Formatting
Skayle converts BlockNote JSON content to WordPress-compatible HTML:Supported Elements
| BlockNote Type | WordPress Output |
|---|---|
| Paragraph | <p> |
| Heading (1-6) | <h1> - <h6> |
| Bullet List | <ul><li> |
| Numbered List | <ol><li> |
| Blockquote | <blockquote> |
| Code Block | <pre><code> |
| Image | <img> with alt text |
| Link | <a href=""> |
| Bold | <strong> |
| Italic | <em> |
| Underline | <u> |
| Strikethrough | <del> |
HTML Sanitization
The connector sanitizes HTML before sending to WordPress:- Removes
<script>tags - Removes event handlers (
onclick,onload, etc.) - Removes
javascript:URLs - Preserves safe HTML tags and attributes
Taxonomy Mapping
Categories
When publishing, Skayle maps article categories to WordPress category IDs:- Looks up the Skayle category in the taxonomy mapping table
- Uses the mapped WordPress category ID
- Falls back to
defaultCategoryIdif no mapping exists
Tags
Tags are mapped similarly:- Looks up each Skayle tag in the mapping table
- Uses mapped WordPress tag IDs
- Tags without mappings are skipped
Authors
Author mapping:- Checks if article author has a WordPress mapping
- Uses mapped WordPress user ID
- Falls back to
defaultAuthorIdif no mapping exists
Featured Images
The connector handles featured images in two ways:- External URLs: If the image is hosted externally, WordPress will use the URL directly (if your theme supports it)
- Upload to Media Library: For better compatibility, images can be uploaded to WordPress Media Library
Image upload to WordPress Media Library requires the user to have
upload_files capability.Troubleshooting
Connection Failed
401 Unauthorized
401 Unauthorized
403 Forbidden
403 Forbidden
- Check if REST API is enabled
- Verify no security plugin is blocking the API
- Ensure your IP isn’t blocked
404 Not Found
404 Not Found
- Verify the Site URL is correct
- Check if permalinks are enabled (Settings → Permalinks)
- Ensure
/wp-json/endpoint is accessible
SSL Certificate Error
SSL Certificate Error
- Ensure your site has a valid SSL certificate
- Check if the certificate is expired
- Verify the certificate chain is complete
Publishing Issues
Posts not appearing
Posts not appearing
- Check if the post status is set correctly
- Verify the publish date isn’t in the future
- Check WordPress for draft posts
Categories/Tags not assigned
Categories/Tags not assigned
Featured image not showing
Featured image not showing
- Verify the image URL is accessible
- Check if your theme supports featured images
- Try uploading to Media Library instead
Security Best Practices
- Use HTTPS: Always use SSL for your WordPress site
- Limit user permissions: Create a dedicated user for Skayle with only necessary permissions
- Rotate passwords: Periodically regenerate Application Passwords
- Monitor access: Check WordPress logs for unusual API activity
- Revoke when needed: Delete the Application Password if you disconnect Skayle