The Post Management action can be used to add or update a post in WordPress.
Adding or updating a post is determined by using the Post ID setting in the post management action.
To access this setting:
- When editing your form, click the Actions icon at the top of the page. The Actions sidebar will open on the right hand side of the page.
- Click the Post Management action settings icon or click the Add icon to add a new post management action.
- Scroll to the Post ID setting.
Adding a Post
If you would like the post management add-on to create a new post, you simply leave the Post ID setting blank.
Updating a Post
To update a post you enter a value into the Post ID setting. Examples of values you can enter in this setting are shown below:
|Update the post or page with the ID: 123. This method is a good way of testing post updates.
|Update the post or page that the form is shown on. The #post_id variable returns the ID of the current post or page.
|Use the submitted value of field ID: 456 as the post ID to update. For example, if field ID 456 is a hidden field with the number 123 in it, post ID 123 would be updated.
Passing the Post ID as a Query String Parameter
It is also possible to specify the post ID you wish to update as a query string parameter.