Skip to main content

i4w_wpcf

Usage

This shortcode provides a simple mechanism to display the content of a WordPress custom field in a post or page.

[ELSE_wpcf] conditional branching is NOT supported.

Shortcode nesting is NOT supported.

Parameters

ParameterDescriptionDefaultRequired
post_idThe page/post ID of the page or post from which the custom field is to be retrieved.current page/postNo
fieldThe name of the custom field to be used.NoneYes

Example

Shortcode
[i4w_wpcf field='wp_custom_field']
Shortcode
[i4w_wpcf post_id='1234' field='wp_custom_field']