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 measurement (Pro feature) entries in either imperial or metric. The appearance of chart can be customised within admin settings to change it’s appearance, type, maximum number of points, etc.
Below the chart is a target form and weight / measurement 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 it’s primary function is to display all of the user’s weight / measurement 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.||[wlt min-chart-point=0]|
|hide-first-target-form||Hide the target form from the Overview tab.||True or false (default).||[wlt hide-first-target-form=true]|
|hide-second-target-form||Hide the target form from the "In Detail" tab.||True or false (default).||[wlt 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).||[wlt 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. 5.1.1 onwards.||True (default) or false||[wlt allow-delete-data="false"]|
|hide-photos (5.2+)||If set to true (default is false) hide the photo upload section of the form.||True or false (default).||[wlt hide-photos=true]|
|hide-tab-photos (5.2.4+)||If set to true (default is false) hide the Photos tab.||True or false (default).||[wlt hide-tab-photos=true]|
|hide-tab-advanced (5.2.4+)||If set to true (default is false) hide the Advanced tab.||True or false (default).||[wlt hide-tab-advanced=true]|
|hide-tab-descriptions (7.5.8+)||If set to true (default is false) hide the descriptions under the tab title.||True or false (default).||[wlt hide-tab-descriptions=true]|
|hide-advanced-narrative (5.2.4+)||If set to true (default is false) hide the text on the Advanced tab that explains each section.||True or false (default).||[wlt hide-advanced-narrative=true]|
|disable-advanced-tables (5.2.8+)||If set to true, disable advanced data tables (responsive with delete and add / edit options).||True or false (default).||[wlt disable-advanced-tables=true]|
|disable-tabs (5.2.8+)||If set to true, disable tabs and display all content on one "page"||True or false (default).||[wlt disable-tabs=true]|
|disable-second-check (5.2.16+)||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).||[wlt disable-second-check=true]|