MLB Standings

MLB Standings adds the ability to display the standings for a division of Major League Baseball (MLB) on your blog via a sidebar widget or template tag. This is ideal for team fan blogs who want to show how their team is doing in the standings. You can also highlight your team in the standings.

Standings are derived from an XML file published daily at erikberg.com. The XML is saved to your WordPress settings and parsed from there to display on your blog.

Version 2.0 removes cURL and file system dependencies to make it more universally compatible with webhosts.

Users upgrading from 1.0 to 2.x should visit the settings page to reset their settings in order to display the standings properly.

Compatibility
This plugin has been tested on WordPress 3.3.1 and 3.3.1 but should work on previous WordPress versions as well.

Installation Instructions

  1. Download the .zip archive (link below) and extract.
  2. Upload the ‘mlb-standings’ folder to your plugin directory. You should now have a ‘/wp-content/plugins/mlb-standings/’ directory holding the contents of the .zip file.
  3. Activate the plugin through the ‘Plugins’ page in WordPress.
  4. Go to ‘Settings->MLB Standings’ in your admin interface to select the division you’d like to display.

Options
There are two options available for this plugin: Division and Team. Division can be one of the following:

After selecting a division the Team dropdown will display the teams within the selected division.

Display Options
There are two ways to display the standings on your blog:

Download Current Version
MLB Standings 2.0.3

Changelog
* v2.0.3 – Compatibility changes for NBA STandings plugin.
* v2.0.2 – Added compression support for XML download.
* v2.0.1 – Small CSS change.
* v2.0 – Added option to highlight team in standings.
– Added AJAX menu for team selection. Only teams from the selected division will be available in the team select box.
– Rewrote settings page to better conform to the WordPress settings API.
– Refactored code to remove unnecessary settings and variables.
– Added link to settings page to the MLB Standings listing on the plugin page.
– Changed download function to use WP_Http API eliminating dependency on cURL.
– Now saving XML to the database instead of downloading eliminating dependency on file system.
– Now using WP Transients API calls to cache the standings XML data instead of using a custom function.

* v1.0 – Initial public release.

Support
If you have any questions, comment or suggestions please leave them in a comment or email them to me.

Download Old Versions
MLB Standings 2.0.2
MLB Standings 2.0.1
MLB Standings 2.0
MLB Standings 1.0

Donations
If you find this plugin useful please feel free to donate a little money to help me offset the costs of this website. Thanks.