Fen WordPress Plugin
The first version of the Show-fen plugin for WordPress is finished.
It is based on the code for SPHPBlog that can be downloaded at Schaakpraat and can be used to display chess diagrams by only inserting the FEN string within the <fen> and </fen> tags. The circle at the upper right corner is used to indicate the move color.
For example by entering <fen>8/4p3/3p4/3k4/8/5N1K/2Q5/8 w - - - -</fen> the following mate in three problem is displayed.
| ![]() |
A description of this FEN notation can be found in Wikipedia.
A FEN “record” defines a particular game position, all in one text line and using only the ASCII character set.
A FEN record contains 6 fields. The separator between fields is a space. The fields are:
- Piece placement (from white’s perspective). Each rank is described, starting with rank 8 and ending with rank 1; within each rank, the contents of each square are described from file a through file h. White pieces are designated using upper-case letters (”KQRBNP”), Black by lowercase (”kqrbnp”). Blank squares are noted using digits 1 through 8 (the number of blank squares), and “/” separate ranks.
- Active color. “w” means white moves next, “b” means black.
- Castling availability. If neither side can castle, this is “-”. Otherwise, this has one or more letters: “K” (White can castle kingside), “Q” (White can castle queenside), “k” (Black can castle kingside), and/or “q” (Black can castle queenside).
- En passant target square in algebraic notation. If there’s no en passant target square, this is “-”. If a pawn has just made a 2-square move, this is the position “behind” the pawn.
- Halfmove clock: This is the number of halfmoves since the last pawn advance or capture. This is used to determine if a draw can be claimed under the fifty move rule.
- Fullmove number: The number of the full move. It starts at 1, and is incremented after Black’s move







[...] Version 1.3 can now be downloaded here [...]