WP WDFY Integration of Wodify

WP WDFY Integration of Wodify | AMRAP42 – Stefan Osterburg

Description

WP-WDFY integrates information from the online performance tracking software Wodify into your WordPress based web site.

DISCLAIMER: The plugin and its author are in no way associated with or endorsed by WODIFY. The plugin relies on the API provided by Wodify.

Features

  • Automatic WOD posting: Automatically create posts from Wodify WODs including images.
  • Upcoming Classes widget: Displays the upcoming classes from Wodify for a selected number of days.
  • WOD Widget: Displays the WOD of a selected day, program, and location.
  • WOD shortcode: Insert a selected WOD into a post, page, …
  • WOD block: Insert a selected WOD into a page or post using the block editor
  • Wodify link shortcode: Inserts responsive text or logo links to the Wodify web app into posts, pages, …
  • Upcoming classes block: Insert a list of upcoming classes into a page or post using the block editor

Installation

Installation:

  • Install and Activate the Plugin via the WordPress Plugin menu
  • Under Settings / Wodify integration enter the API Key for your Wodify tenant. To find you API Key look here: Finding your Wodify API Key
  • After saving the API key, optionally set the default Location and Default Program parameters.

Configure Features:

WOD Posting: Automatically create WordPress posts from Wodify WODs

  • Go to Settings/Wodify
  • Chose the WOD Settings page
  • Activate automatic WOD posting by changing the frequency
  • Configure the locations and programs to create automated posts for, remember to Activate each line in the “Create Post” column

WOD Widget: Displays the WOD of a selected day, program, and location. To use:

  • Go to Appearance/Widgets and add the “Wodify WOD” widget to a widget area of your choice.
  • Set the title
  • Set the Location and program parameters of the widget
  • Select the day to display the WOD for
  • If you wish to ignore the Blog publish date for your WOD set in Wodify, set to “Yes”. If set to “No”, WOD will not be displayed before that date.
  • If you would like the plugin to cache the WOD returned by Wodify select “Yes”; select “No” if the WOD should be pulled from Wodify whenever the widget is displayed
  • If you wish to exclude certain components from being displayed, specify the respective component names to be excluded as comma separated list, e.g. “Warm-up, Cool-down”. Use “Header” for the WOD header (name and comment) section.
  • If you wish to display only selected components, specify the respective component names to be shown as comma separated list, e.g. “Metcon, Weightlifting”. Use “Header” for the WOD header (name and comment) section.
  • Decide if WOD images should be displayed

Feel free to style the output with your CSS.

Upcoming classes widget: Displays the upcoming classes from Wodify for a selected number of days. To use:

  • Under Settings/Wodify configure the caching frequency for classes information.
  • Optionally, under Settings / Wodify configure the colors to use for the different programs (otherwise colors from Wodify will be used).
  • Also in Settings/Wodify you can deactivate programs for the calendar widget entirely, however see below how to hide or show specific components in a widget.
  • In Settings/Wodify configure URLs for the different programs, e.g. a description page in your site for each program.
  • Go to Appearance/Widgets and add the “Wodify Upcoming Classes” widget to a widget area of your choice.
  • Set the title
  • Chose the number of upcoming days to display. Defaults to “today +2 days”
  • Set the number of classes to display without scrolling. Defaults to 3. If there are more than 3 classes they will autoscroll in the widget.
  • Change the height of the display box for one class. Defaults to 64 pixels. Increase depending on your font-size to display more information without hovering with the mouse.
  • Set/change the content of the lines displayed for each class. Defaults to something sensible 😉
  • If you wish to exclude certain components from being displayed, specify the respective component names to be excluded as comma separated list, e.g. “Warm-up, Cool-down”. Use “Header” for the WOD header (name and comment) section, “Announcements” for the respective section.
  • If you wish to display only selected components, specify the respective component names to be shown as comma separated list, e.g. “Metcon, Weightlifting”. Use “Header” for the WOD header (name and comment) section, “Announcements” for the respective section.
  • Deactivate caching if you always want to pull the most recent information from Wodify on page load. Activate caching to reduce page load times. Please be aware that caching depends on the caching frequency setup in the plugin’s settings.

Feel free to style the output with your CSS.

Shortcode ‘wdfywod’: Output a selected WOD into a post, page, …

Attributes:

  • location: Location name from Wodify, defaults to setting from Settings page
  • date: Date in Format Y/m/d, defaults to today’s date. Or relative to today’s date “+1”, “+2”, “-1”, Use “MON”, “TUE”, “WED”, “THU”, “FRI”, “SAT”, “SUN” to display WOD for a specific upcoming weekday
  • program: Name of the program to display the WOD for, defaults to the program chosen on the Settings page.
  • ignorepublishdate: By default the shortcode will respect the BlogPublish Date set in Wodify. If this attribute is set to “true” the WOD will be displayed anyway if available.
  • includecomponents: comma seperated list of WOD component names. If specified, only components with these names will be shown, names are case-sensitive. Use “Header” for the WOD header (name and comment) section
  • excludecomponents: comma seperated list of WOD component names. If specified, components with the specified names will not be shown, names are case-sensitive. Use “Header” for the WOD header (name and comment) section
  • cache: set to “false” in order to always access Wodify and disable local caching, defaults to “true”
  • showimages: set to true to display images, false to skip images, defaults to the value setup in general settings

Examples

  • [wdfywod date=”2016/10/08″ location=”AMRAP42″ program=”Crossfit”]
  • [wdfywod]
  • [wdfywod date=”+1″ ignorepublishdate=”true” excludecomponents=”Header,Warm-up”]

Shortcode ‘wdfylink’: Inserts a link to a Wodify application web page (user must be logged in or login manually) or the Wodify homepage

Attributes:

  • device: “mobile” to link mobile web app, “desktop” to link to desktop web page. “auto” to use responsive css to determine link target, defaults to “auto”
  • page: “wod” (default) | “calendar” | “whiteboard” | “home”
  • newtab: “true” to open inserted link in new tab, defaults to “false”
  • logo: “black” | “black2″ |”vblack” | “vblack2” logos for black background “2” indicates double size, “v” vertical logo
    “white” | “white2″ |”vwhite” | “vwhite2” logos for white background “2” indicates double size, “v” vertical logo
    “color” | “color2″ |”vcolor” | “vcolor2” colored logos (for white background) “2” indicates double size, “v” vertical logo
    “none” (default) create text link with text enclosed in shortcode (default Text: “Wodify”)

Examples

  • [wdfylink page=”calendar” newtab=”true”]Click here to go to the Wodify calendar[/wdfylink]
  • [wdfylink]Click here to go to Wodify[/wdfylink]
  • [wdfylink logo=”black”/]

Shortcode ‘wdfyevents’: Insert a list of upcoming classes of selected programs, including schema.org markup for search engines

Attributes:

  • includeprograms: Comma seperated list of programs to include classes from. If empty, all active programs (see Classes settings tab) are used.
  • excludeprograms: Comma seperated list of programs NOT to include from all active programs (see Classes settings tab)
  • location: Comma seperated list of locations. Uses default location (General Options tab) if not specified
  • numdays: Number of days to find classes in the future. Defaults to 7 (one week)
  • Comma seperated list of the following values that defines the columns to display and their order:
    date: Date of class
    time: Time of class
    program: Name of Wodify program (event name)
    coach: Coach of the class
    location: Location name from Wodify
    address: Location address from Wodify
  • schemaorg: If set to “false” a schema.org event markup for each listed class will not be included in the page. If you intend to use schema.org markup, please make sure to setup the site image and/or program image URLs in the plugin settings.
  • showheader: If set to “true” a table header will be included.

Examples
*[wdfyevents includeprograms=”Introduction to CrossFit”]
*[wdfyevents includeprograms=”Introduction to CrossFit” columns=”date,time,program” dateformat=”d.m.y” showheader=true]

Plugin author

AMRAP42 – Stefan Osterburg

Plugin official website address

https://wordpress.org/plugins/wp-wdfy-integration-of-wodify/
If you encounter problems in using the WP WDFY Integration of Wodify plugin, you can comment below, and I will try my best to help you solve the problem

Leave a Comment

Your email address will not be published.