Skip to content

Instantly share code, notes, and snippets.

View alicolville's full-sized avatar

Ali Colville alicolville

View GitHub Profile
/*
Below is an example (not the best one) but an example none the less!
*/
[wt-if field="is-logged-in"]
Great you're logged in...
[wt-if-1 field="height"]
... and you have added a height.
@alicolville
alicolville / [wlt-if]
Last active March 22, 2021 21:27
Examples of [wlt-if] shortcode
// ------------------------------------------
// Checking is logged in
// ------------------------------------------
[wt-if field="is-logged-in"]
[wt-chart]
[else]
You must log in to see your chart.
[/wt-if]
@alicolville
alicolville / [wlt-calories]
Created August 25, 2017 10:41
Example usuages of [wlt-calories]
[wlt-calories progress="maintain" type="total"]
[wlt-calories progress="maintain" type="breakfast"]
[wlt-calories progress="maintain" type="lunch"]
[wlt-calories progress="maintain" type="dinner"]
[wlt-calories progress="maintain" type="snacks"]
[wlt-calories progress="lose" type="total"]
[wlt-calories progress="lose" type="breakfast"]
[wlt-calories progress="lose" type="lunch"]
[wlt-calories progress="lose" type="dinner"]
[wlt-calories progress="lose" type="snacks"]
@alicolville
alicolville / gist:be4ab064dbd4d0a723ecd75649831e45
Last active March 23, 2021 20:13
Macronutrients Shortcodes
[wt-macronutrients-table]
<!-- Maintain -->
[wt-macronutrients progress="maintain" type="total" nutrient="protein"]
[wt-macronutrients progress="maintain" type="total" nutrient="carbs"]
[wt-macronutrients progress="maintain" type="total" nutrient="fats"]
[wt-macronutrients progress="maintain" type="breakfast" nutrient="protein"]
[wt-macronutrients progress="maintain" type="breakfast" nutrient="carbs"]
[wlt-new-users days="7"]
[wlt-new-users days="30"]
[wlt-new-users days="365"]
[wlt-new-users days="7" count-all-roles="true"]