POSTARYX

WordPress Settings

Provider settings for WordPress posts

Overview

WordPress integration allows you to publish posts to your WordPress site. You can set the title, featured image, and post type.

Settings Schema

{
  "__type": "wordpress",
  "title": "Post Title",
  "main_image": {
    "id": "image-id",
    "path": "https://uploads.postiz.com/featured.jpg"
  },
  "type": "post",
  "categories": [12],
  "tags": [45, 46],
  "status": "publish"
}

Properties

PropertyTypeRequiredDescription
__typestringMust be "wordpress"
titlestringPost title (min 2 chars)
main_imageobjectFeatured image
main_image.idstringImage ID
main_image.pathstringImage URL
typestringPost type (depends on your WordPress setup)
categoriesnumber[]Category IDs to file the post under
tagsnumber[]Tag IDs to apply
statusstringpublish, draft, pending or private

status

ValueDescription
publishPublish immediately
draftSave as a draft in WordPress
pendingSubmit for review
privatePublish, visible only to logged-in users with permission

categories and tags take numeric WordPress IDs, not names. Look them up in your WordPress admin, or through the WordPress REST API, before sending them.

Example

{
  "type": "schedule",
  "date": "2024-12-14T10:00:00.000Z",
  "shortLink": false,
  "tags": [],
  "posts": [
    {
      "integration": {
        "id": "your-wordpress-integration-id"
      },
      "value": [
        {
          "content": "<h2>Introduction</h2>\n<p>Welcome to our latest blog post...</p>\n\n<h2>Main Content</h2>\n<p>Here's what you need to know...</p>",
          "image": []
        }
      ],
      "settings": {
        "__type": "wordpress",
        "title": "Latest Company Updates",
        "type": "post"
      }
    }
  ]
}

Notes

  • The type field depends on your WordPress configuration (e.g., "post", "page", or custom post types)
  • Content can be HTML or Markdown depending on your WordPress setup
  • Featured images will be uploaded to your WordPress media library