This is the most popular shortcode for the Weight Loss Tracker plugin and displays three sections / tabs when the user is logged into WordPress.
Note: Please only place this shortcode once per page. If placed more than once you may experience unstable results.
Displays a chart of the user’s weight and custom field (Pro feature) entries in either imperial or metric. The appearance of chart can be customised within the admin settings to change its appearance, type, maximum number of points, etc.
Below the chart is a target form and weight / custom field entry form. If enabled, the target form allows the user to enter their desired target weight. This target is then displayed on the chart and used by other shortcodes / widgets.
The main feature of the Overview screen is the ability to enter a weight for the given day or overwrite a previous entry. These entries are then stored against the user’s record in chronological order and displayed on the chart and “In Detail” tab.
Pro users that have enabled measurements will be presented with additional fields that allow your user’s to enter measurements for various parts of their body. Measurement entries are displayed alongside the weight entries
“The in Detail” tab has another target form for ease of use but its primary function is to display all of the user’s weight and custom field entries in tabular format. The Pro version has an improved data table with features such as sortable, expandable and contains links to edit / delete each weight entry. The weight entries can also be filtered by the drop down to show all entries or select them by a week by week basis. This filtering is reflected in the table and the chart.
If enabled and you have Pro, the third tab presents the logged in user with a settings page. This allows users to specify their height (if BMI enabled), select their preferred measurement units and date format.
They also have the option to delete their existing data.
The shortcode supports the following arguments:
|min-chart-point||Specifies how many weight entries must be present before the chart is displayed. By default, it is set to 2.||A numeric value. Default 2.||[wt min-chart-point=0]|
|hide-first-target-form||Hide the target form from the Overview tab.||True or false (default).||[wt hide-first-target-form=true]|
|hide-second-target-form||Hide the target form from the "In Detail" tab.||True or false (default).||[wt hide-second-target-form=true]|
|show-add-button||If true, an "Add Entry" button is displayed above the chart. Clicking this button jumps the user to the weight entry form.||True or false (default).||[wl show-add-button=true]|
|allow-delete-data||If set to false (default is true), the section allowing users to delete their own data is hidden.||True (default) or false||[wt allow-delete-data="false"]|
|hide-notes||If set to true (default is false) hide the "notes" section of the form.||True or false (default).||[wt hide-notes=true]|
|hide-photos||If set to true (default is false) hide the photo upload section of the form.||True or false (default).||[wt hide-photos=true]|
|hide-tab-photos||If set to true (default is false) hide the Photos tab.||True or false (default).||[wt hide-tab-photos=true]|
|hide-tab-advanced||If set to true (default is false) hide the Advanced tab.||True or false (default).||[wt hide-tab-advanced=true]|
|hide-tab-descriptions||If set to true (default is false) hide the descriptions under the tab title.||True or false (default).||[wt hide-tab-descriptions=true]|
|hide-advanced-narrative||If set to true (default is false) hide the text on the Advanced tab that explains each section.||True or false (default).||[wt hide-advanced-narrative=true]|
|disable-advanced-tables||If set to true, disable advanced data tables (responsive with delete and add / edit options).||True or false (default).||[wt disable-advanced-tables=true]|
|disable-tabs||If set to true, disable tabs and display all content on one "page"||True or false (default).||[wt disable-tabs=true]|
|disable-second-check||Disables the check to see if [wlt] has already been placed on the page. Some users (and clashing plugins) were causing it to fail.||True or false (default).||[wt disable-second-check=true]|
|enable-week-ranges||If enabled, a drop down of Weeks shall be displayed above the "Weight History" table. Once a week is selected, the data for that week shall only be displayed.||True or false (default).||[wt enable-week-ranges=true]|
|bmi-format||Specify the format that BMI should be displayed in.||'label' (default), 'both' or 'index'||[wt bmi-format='both']|