WordPress
The WordPress node allows you to automate work in WordPress, and integrate WordPress with other applications. Robbot Automation has built-in support for a wide range of WordPress credentials, including creating, updating, and getting posts and users.
On this page, you'll find a list of operations the WordPress node supports and links to more resources.
!!! note "Credentials" Refer to WordPress credentials for guidance on setting up authentication.
!!! note "Examples and templates" For usage examples and templates to help you get started, take a look at Robbot Automation's WordPress list.
Basic Operations
- Post
- Create a post
- Get a post
- Get all posts
- Update a post
- User
- Create a user
- Get a user
- Get all users
- Update a user
Example Usage
This workflow allows you to create and update a post in WordPress. You can also find the workflow on Robbot Automation. This example usage workflow would use the following nodes.
1. Start node
The start node exists by default when you create a new workflow.
2. Wordpress node (create: post)
- First of all, you'll have to enter credentials for the WordPress node. You can find out how to do that here.
- Enter the title in the Title field.
- Click on Save to run the workflow.
3. Wordpress1 node (update: post)
- Select the credentials that you entered in the previous node.
- Select 'Update' from the Operation dropdown list.
- Click on the gears icon next to the Post ID field and click on Add Expression.
- Select the following in the Variable Selector section: Nodes > Wordpress > Output Data > JSON > id. You can also add the following expression:
{{$node["Wordpress"].json["id"]}}
. - Click on the Add Field button and select 'Content' from the dropdown list.
- Enter the content in the Content filed.
- Click on Save to run the workflow.