WS Form includes a range of variables that let you pull information directly from WordPress Posts. You can display post titles, IDs, dates, authors, or even custom fields in your forms. This makes it easy to create dynamic, content-aware forms that automatically adapt to the post they are embedded in.
| Variable | Name | Description | Usage |
|---|---|---|---|
#post_content | Content | Returns the post content. | Actions |
#post_date | Date Created | Returns the post date according to the Date Format setting found in WordPress Settings > General. | Client-side & Actions |
#post_date_custom("format", seconds_offset) | Date / Time Created - Custom | Returns the post creation date and time in the specified format (PHP date format). For more information about this variable, click here. | Client-side & Actions |
#post_date_modified | Date Modified | Returns the post modified date according to the Date Format setting found in WordPress Settings > General. | Client-side & Actions |
#post_date_modified_custom("format", seconds_offset) | Date / Time Modified - Custom | Returns the post modified date and time in the specified format (PHP date format). For more information about this variable, click here. | Client-side & Actions |
#post_excerpt | Excerpt | Returns the post excerpt. | Actions |
#post_id | ID | Returns the post ID. | Client-side & Actions |
#post_meta("key") | Meta Value | Returns the post meta value for the key specified. | Client-side & Actions |
#post_name | Slug | Returns the post slug. | Client-side & Actions |
#post_parent | Parent ID | Returns the post parent ID. | Client-side & Actions |
#post_status | Status | Returns the post status. | Client-side & Actions |
#post_time | Time Created | Returns the post creation time according to the Time Format setting found in WordPress Settings > General. | Client-side & Actions |
#post_time_modified | Time Modified | Returns the post modified time according to the Time Format setting found in WordPress Settings > General. | Client-side & Actions |
#post_title | Title | Returns the post title. | Client-side & Actions |
#post_type | Type | Returns the post type. | Client-side & Actions |
#post_url | Public URL | Returns the post URL. | Client-side & Actions |
#post_url_edit | Admin URL | Returns the post admin URL. | Client-side & Actions |