Shortcodes

Shortcodes

The LSX Health plugin supports various shortcodes that display user information and the health plan content you have added. These shortcodes should be placed inside the shortcode block. Therefore, it’s possible to arrange the health plan functionality into flexible layouts as long as you build your pages using the Gutenburg Block editor. 

My Profile Tabs

[lsx_health_plan_my_profile_tabs]

Displays the overall account tabs:

  • My Plan: Displays the rest of the plan content according to the shortcodes added to the plan page.
  • Account Details: The user can update their profile information and update their stats here.
  • Log out: Clicking on this tab logs the user out

My Profile Block

[lsx_health_plan_my_profile_block]

Displays the user’s profile information:

  • Profile Image
  • Name
  • Their start, current and goal statistics

Account Notices

[lsx_health_plan_account_notices]

Displays important account messages or issues.

Featured Tip Block

[lsx_health_plan_featured_tip_block] 

Brings the featured tips (brings the latest 3 marked featured from all) (this one is a tiny square, so it should be added in a column or something small)

Day Plan Block

[lsx_health_plan_day_plan_block]

Displays each individual day plan, with a checkmark if a user has completed that day.

Custom Parameters:

week_view=”true” – displays the day plans ordered into weekly sections that can be toggeled open or closed

Featured Recipe Block

[lsx_health_plan_featured_recipes_block]

Displays featured recipes in a slider

Featured Video Block

[lsx_health_plan_featured_video_block]

Displays featured videos in a slider