Weight Tracker Documentation

Documentation and tips for setting up Weight Tracker on your WordPress site.

More:
WordPress.org / GitHub / YeKen.uk

Main Shortcodes

The majority of the public facing functionality are implemented using WordPress shortcodes. This allows you to place Weight Tracker functionality amongst your website content. For example, the most popular shortcode of the plugin is [wt]). To use a shortcode, place it amongst your website content) and save. The shortcode shall then be replaced by the plugin feature.

Shortcode Description
[wt] A shortcode that encompasses all Weight Tracker front end functionality.
[wt-awards] Display awards given to the user.
[wt-awards-grid] Display most recent award for the given user.
[wt-awards-recent] Display awards given to the user in gird format.
[wt-bmi] Display the user's BMI.
[wt-bmr] Display the user's BMR.
[wt-calories] Displays a specific calorie figure from a user's calorie intake figures.
[wt-calories-table] Displays recommendations on the best way to split your calorie intake.
[wt-chart] Displays a chart of the user's weight / custom field entries.
[wt-challenges] Display a Challenge league table.
[wt-custom-fields-chart] Displays a chart of the user’s custom field entries.
[wt-custom-fields-form] Displays a form for custom fields only.
[wt-custom-fields-table] Displays a table of the user’s custom field entries.
[wt-custom-fields-accumulator] Allow user's to quickly increment a custom field value for today.
[wt-form] Display a target or weight entry / custom fields form.
[wt-form-target] Display a target form.
[wt-group] Display the user's current group.
[wt-group-total-weight-loss] Display the the weight lost by the entire group.
[wt-if] Add conditional display logic based on whether WT data has been completed or not.
[wt-league-table] Display a league table of Weight Tracker users.
[wt-macronutrients] Displays a macronutrient figure from the macronutrient intake calculations.
[wt-macronutrients-table] Displays recommendations on the best way to split your calorie intake.
[wt-message] Display a message when a user has gained/lost weight over a number of consecutive entries.
[wt-photo-count] Display the number of photos uploaded by the current user.
[wt-photo-gallery] Display a gallery of the user's uploaded photos (custom fields).
[wt-photo-oldest] Display the the oldest photo uploaded by the user.
[wt-photo-recent] Display the the latest photo uploaded by the user.
[wt-progress-bar] Display a progress bar of the current user's progress towards their target weight.
[wt-reminder] Display reminders to logged in users informing them to add an entry or target for today.
[wt-table] Display a data table of the user's weight and custom fields entry.
[wt-total-weight-loss-by-community] Display the weight lost by the entire community.
[wt-user-settings] Display the user settings form.