Chess Game Viewer is a premium WordPress Plugin that allows anyone to quickly and easily add a chess game to any WordPress page or post. The chess pieces and chessboard are completely customizable allowing you to change the color, size, style, and more. This WordPress plugin is available for free download from the WordPress directory.
To use this plugin, simply paste your PGN format game between <pgn></pgn> tags or use the Quicktag button in the HTML editor. The game will be converted to an interactive playable chess game on your web page! As you can see, this is the best way to add chess games to your blog.
Chess Game Viewer is powered by javascript and relies on the jsPgnViewer library developed by Toomas Roomer. Toomas was very helpful in answering questions as I built on his work. I am very greatful for his work and encourage you to check out his website, http://tom.jabber.ee/chessblog/
Here is a demo of the Chess plugin in action:
[Event "Sample Game"]
[Site "Yahoo! Chess"]
[Date "2010.02.20"]
[Round "?"]
[White "Adrian Hanft"]
[Black "Anonymous"]
[Result "1-0"]
1. f4 e6 2. Nf3 { This odd looking opening gets referred to as the Polar Bear.
} Bc5 3. e3 h6 4. g4 g5 5. h4 gxf4 6. exf4 Qf6 7. d3 Ne7 8. Bd2 { This is a
trap exposing the b pawn to the queen. It looks like a bad move doesn’t it? }
Qxb2 9. Bc3 { Did white just win a rook? } Qb6 { Now white must resist taking
the rook because bf2 could get nasty in a hurry. } 10. d4 Bb4 11. Bxb4 Qxb4+
12. Nbd2 Nd5 13. Rb1 Qa3 14. Bc4 Nc3 { This looks bad for white, but luckly
there is a queen swap option. } 15. Rb3 Nxd1 { Black accepts the trade. } 16.
Rxa3 Nb2 17. Be2 Nc6 18. O-O d5 19. Rb1 { blacks knight is in trouble and white
wins a pawn and a strong position. } Nc4 20. Nxc4 dxc4 21. Bxc4 a6 22. d5 exd5
23. Bxd5 Ne7 24. Bc4 b5 { This pawn is free for the taking thanks to a pin of
the knight. } 25. Bxb5+ c6 26. Bc4 Bxg4 27. Ne5 Bf5 28. Bxf7+ Kf8 29. Bh5 Bxc2
30. Rc1 Be4 31. Kf2 Rg8 32. Rg1 { Knd7+ probably would have been a better move,
but white plays rg1 } Rxg1 33. Kxg1 Nf5 34. Kf2 Nxh4 35. Re3 Bd5 36. Nd7+ { Now
black is in trouble } Kg7 37. Re7+ Kh8 38. Nf6 Rf8 { bg8 would have prolonged
things a little longer. } 39. Rh7# 1-0