Celebrate WordCamp Europe - 30% OFF! Use coupon WC30 - View Details

Setting Which Post ID to Update in the Post Management ActionPRO

This knowledge base article relates to the WS Form Post Management add-on. Included with the Agency edition or buy separately for other editions.

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.

WS Form - Post Management - Post ID Setting

To access this setting:

  1. 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.
  2. Click the Post Management action settings   icon or click the Add  icon to add a new post management action.
  3. 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:

Post ID Description
123 Update the post or page with the ID: 123. This method is a good way of testing post updates.
#post_id Update the post or page that the form is shown on. The #post_id variable returns the ID of the current post or page.
#field(456) 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.