Shortcodes

[wlt-form]

The following shortcode is available in Pro version of the plugin.

This shortcode allows you to display target and weight entry forms where you wish.

Shortcode Arguments

The shortcode supports the following arguments:

Argument Description Options Example
user-id The ID of the user that data should be saved against. If not specified defaults to the current logged in user. A numeric value. [wlt-form user-id='2']
target If set to true, specifies that the form is for recording target weight. True or false (default). [wlt-form target='true' ]
class Allows you to specify an additional CSS class on the element. String value. [wlt-form class='additional-css-class']
redirect-url If specified, a URL that the user should be redirected to after completing the form. A URL within the current domain. [wlt-form redirect-url='https://yoursite.com/thank-you-page']
hide-titles If set to true, the title (e.g. Target Weight) above the form will be hidden. True or false (default) [wlt-form hide-titles='true']
hide-measurements If set to true, the measurements part of the form will be hidden. True or false (default) [wlt-form hide-measurements='true']

Example weight entry form:

Example target form:

If you have the Pro version of the plugin, then you will have the option to display measurements to.

The following example is with measurements enabled:

 

Yes No Suggest edit
Help Guide Powered by Documentor
Suggest Edit