This shortcode is designed to check for the existence of a $_POST variable and, given a value to check, for a value match. Any content embedded between the tags will be displayed if the criteria is met.

[ELSE_ifpost] conditional branching is supported.

Shortcode nesting is supported:
[i4w_ifpost1] thru [i4w_ifpost19]

[ELSE_ifpost1] thru [ELSE_ifpost19]


post The name of the $_POST variable for whose existence you are checking.
Default: none.
Required: yes.
val A value which the $_POST variable must hold in order for the shortcode to evaluate to true.
Default: none.
Required: no.


Will display “Test POST is set” if $_POST[‘test_post’] exists.

Will display “Test POST is set to 123” if $_POST[‘test_post’] exists. AND its value is 123.


There is no API function equivalent for this shortcode.