← Wordpress.org

Create Post with Wordpress.org API

Pipedream makes it easy to connect APIs for Wordpress.org and 900+ other apps remarkably fast.

Trigger workflow on
HTTP requests, schedules and app events
Next, do this
Create Post with the Wordpress.org API
No credit card required
Into to Pipedream
Watch us build a workflow
Watch us build a workflow
7 min
Watch now ➜
Trusted by 250,000+ developers from startups to Fortune 500 companies:
Trusted by 250,000+ developers from startups to Fortune 500 companies

Developers Pipedream

Getting Started

Create a workflow to Create Post with the Wordpress.org API. When you configure and deploy the workflow, it will run on Pipedream's servers 24x7 for free.

  1. Configure the Create Post action
    1. Connect your Wordpress.org account
    2. Configure Title
    3. Configure Content
    4. Optional- Select a Status
    5. Optional- Select a Author
    6. Optional- Select one or more Categories
    7. Optional- Configure Excerpt
    8. Optional- Configure Comment Status
  2. Select a trigger to run your workflow on HTTP requests, schedules or app events
  3. Deploy the workflow
  4. Send a test event to validate your setup
  5. Turn on the trigger

Integrations

Create Post with Wordpress.org API on New Requests (Payload Only) from HTTP / Webhook API
HTTP / Webhook + Wordpress.org
 
Try it
Create Post with Wordpress.org API on New Message from Discord API
Discord + Wordpress.org
 
Try it
Create Post with Wordpress.org API on New Message In Channels from Slack API
Slack + Wordpress.org
 
Try it
Create Post with Wordpress.org API on New Message in Channel from Discord Bot API
Discord Bot + Wordpress.org
 
Try it
Create Post with Wordpress.org API on New Submission from Typeform API
Typeform + Wordpress.org
 
Try it

Details

This is a pre-built, open source component from Pipedream's GitHub repo. The component is developed by Pipedream and the community, and verified and maintained by Pipedream.

To contribute an update to an existing component or create a new component, create a PR on GitHub. If you're new to Pipedream component development, you can start with quickstarts for trigger span and action development, and then review the component API reference.

Create Post on Wordpress.org
Description:Creates a post. [See the docs here](https://developer.wordpress.org/rest-api/reference/posts/#create-a-post)
Version:0.0.1
Key:wordpress_org-create-post

Code

import wordpress from "../../wordpress_org.app.mjs";

export default {
  key: "wordpress_org-create-post",
  name: "Create Post",
  description: "Creates a post. [See the docs here](https://developer.wordpress.org/rest-api/reference/posts/#create-a-post)",
  version: "0.0.1",
  type: "action",
  props: {
    wordpress,
    title: {
      propDefinition: [
        wordpress,
        "title",
      ],
    },
    content: {
      propDefinition: [
        wordpress,
        "content",
      ],
    },
    status: {
      propDefinition: [
        wordpress,
        "status",
      ],
    },
    author: {
      propDefinition: [
        wordpress,
        "author",
      ],
    },
    categories: {
      propDefinition: [
        wordpress,
        "categories",
      ],
    },
    excerpt: {
      propDefinition: [
        wordpress,
        "excerpt",
      ],
    },
    commentStatus: {
      propDefinition: [
        wordpress,
        "commentStatus",
      ],
    },
  },
  async run({ $ }) {
    const params = {
      title: this.title,
      content: this.content,
      status: this.status,
      author: this.author,
      categories: this.categories,
      excerpt: this.excerpt,
      comment_status: this.commentStatus,
    };

    const resp = await this.wordpress.createPost(params);

    $.export("$summary", "Successfully created new post.");

    return resp;
  },
};

Configuration

This component may be configured based on the props defined in the component code. Pipedream automatically prompts for input values in the UI and CLI.
LabelPropTypeDescription
Wordpress.orgwordpressappThis component uses the Wordpress.org app.
Titletitlestring

Title of the post

Contentcontentstring

The content of the post

StatusstatusstringSelect a value from the drop down menu.
AuthorauthorstringSelect a value from the drop down menu.
Categoriescategoriesstring[]Select a value from the drop down menu.
Excerptexcerptstring

The excerpt of the post

Comment StatuscommentStatusboolean

Whether or not comments are allowed on the post

Authentication

Wordpress.org uses API keys for authentication. When you connect your Wordpress.org account, Pipedream securely stores the keys so you can easily authenticate to Wordpress.org APIs in both code and no-code steps.

This integration requires the Application Passwords plugin to be installed in your Wordpress instance which allows you to authenticate users without providing their passwords directly.
The URL field if for your domain such as https://[URL]/wp-json/wp/v2/posts/POST_ID.

About Wordpress.org

Self hosted Wordpress

More Ways to Use Wordpress.org

Actions

Create User with the Wordpress.org API

Creates a user. See the docs here

 
Try it
Search Posts with the Wordpress.org API

Searches for specific posts. See the docs here

 
Try it
Update Post with the Wordpress.org API

Updates a post specified by its ID. See the docs here

 
Try it