Shortcodes

[wlt-macronutrients-table]

The following shortcode is available in the Pro Plus version only.

[wlt-macronutrients-table] displays recommendations on the best way to split your calorie intake (for maintaining and losing weight) into macronutrients i.e. Fats, Carbohydrates and Proteins. For more information on macronutrient calculations please visit our calculations page.

The following is an example of how the rendered table looks:

Shortcode Arguments

The shortcode supports the following arguments:

Argument Description Options Example
css-class (5.2+) Specifies an additional CSS class on the tag
String [wlt-macronutrients-table css-class="my-table-format-css"]
error-message When rendering the table, if an error occurs due to missing criteria (for example Date of Birth) a generic message is displayed. This can be replaced by specifying this argument. String [wlt-macronutrients-table error-message="Please complete all the fields on the preference page"]
user-id By default, the shortcode will display the macronutrients table for the current user. If you wish to display the table for a given user, use the following argument. A number. [wlt-macronutrients-table user-id="1"]
disable-jquery (5.2.2+) If set to true, the jQuery that converts the standard HTML into a responsive one is disabled. Instead, a standard HTML will be rendered.
True or False (default) [wlt-macronutrients-table disable-jquery=true]
Yes No Suggest edit
Help Guide Powered by Documentor
Suggest Edit