Displays Steam gaming statistics in a widget with increased flexibility, stability, and performance
NOTICE: STEAM RECENTLY ADDED A NEW PROFILE PRIVACY OPTION THAT BY DEFAULT DISABLES SHOWING GAME INFORMATION FOR THE WIDGET. Make sure you edit your profile privacy settings and turn game details (and your profile) to public.
This plugin will add a widget that displays your Steam gaming statistics. It employs caching to keep your site’s performance up and make it less susceptible to Steam outages or errors.
The widget comes with the following preset looks (see screenshots) that you can easily switch between:
You can also customize the widget to suit your needs by editing the templates, which support the following attributes pulled from your Steam profile:
/wp-content/plugins/
directory/wp-content/plugins/
directoryIn either Steam itself or on the Steam website, go to the upper-right where it says “your account” and then click on “View Profile”. The URL on the page will either be in the format http://steamcommunity.com/id/XXX or http://steamcommunity.com/profiles/XXX where your Steam Profile ID is XXX. For the latter, it will be a unique 17-digit number. If you want to use the former, which has a prettier URL, go to “Edit Profile” and enter a “Custom URL”.
In the widget options, change the preset to “Custom”. The two template boxes will appear. The “Game Template” is used to output every game played recently and the “Main Template” is for everything else. To show the game template in the main template, you must use the pattern %GAMES_TWOWEEKS% in the main template.
Use “Toggle Show Patterns” below each template to show the patterns that each template supports. These patterns are replaced with data from your Steam profile.
Patterns that start with “IF_” are conditionals that can output based on whether or not some condition is true. For example, for IF_GAME_STATS{XXX}, if a game supports stats, “XXX” is output, otherwise nothing is output. Conditionals can also be followed with an “ELSE” pattern that outputs if the preceding conditional was false. For example, IF_GAME_STATS{%GAME_STATS_URL%}ELSE{%GAME_URL%} will output the URL for your game stats if the game supports stats, otherwise it will output the URL for the game’s Steam community page.
When you save the widget’s settings, it will show you a shortcode that you can use to display that widget in pages or posts. Just copy and paste the code where you want the widget. It’s recommended to use the full-page preset with the shortcode. You can move the widget into the “Inactive Widgets” area when only using the shortcode.