Search Over 30,000 FREE Plugins from the Official WordPress Plugin Directory Repository


Integration of PgnViewerJS into WordPress.

Integration of PgnViewerJS into WordPress. This is a small layer around the original PgnViewerJS, but is needed to use it in a WordPress installation. At the end, it should provide the following interfaces:

[pgnv]1. e4 e5 2. ...[/pgnv]

This is the PgnViewer (mostly needed): allows to play through a game (including variations), printing the comments, NAGs, ...

 [pgne]1. e4 ...[/pgne]

Allows to edit and view a game. At the end, you may use the PGN button to display the notation, that then may be copied again in the WordPress post entry.

 [pgnb position=<a FEN string>][/pgnb]

Just to display a board (only), no moves.

 [pgnp]1. e4 e5D 2. Nf3 Nc6D ...[/pgnp]

Allows to print a game in a format similar to magazines and books. For that purpose, the notation of PGN was expanded by the "D" at the end of a move, that stands for the diagram.

Author Markus Liebelt
Contributors mliebelt
Tags chess, pgn
  1. pgnviewerjs-wp screenshot 1

    This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Note that the screenshot is taken from the /assets directory or the directory that contains the stable readme.txt (tags or trunk). Screenshots in the /assets directory take precedence. For example, /assets/screenshot-1.png would win over /tags/4.3/screenshot-1.png (or jpg, jpeg, gif).

  2. pgnviewerjs-wp screenshot 2

    This is the second screen shot

  1. Upload the plugin files to the /wp-content/plugins/plugin-name directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the 'Plugins' screen in WordPress


  • First version made public

What parameters are available?

The parameters the viewer understands are:

  • id: necessary if more than one viewer will be contained in one post. Default is 'demo'
  • locale: the locale to use for displaying the moves, default is 'en'
  • fen: the position where the game starts, default is the initial position
  • piecestyle: the pieces to use, default is 'merida'. Availabe are: 'wikipedia', 'alpha', 'uscf', 'case', 'condal', 'leipzig', 'chesscom', and 'beyer'.
  • orientation: 'white' or 'black', default is 'white'
  • theme: the theme defines the overall board, color, pieces, ... Current are: green, zeit, chesscom, informator, sportverlag, beyer, falken, blue
  • boardsize: the size of the board, if it should be different to the size of the column.
  • size: the size of the column to print the board, the buttons, the moves, ...

Where can I find more information about the implementation?

Have a look at the GitHub repository and the sister repository (which contains the implementation in Javascript).

Version 0.9.4

Requires WordPress version: 4.6 or higher

Compatible up to: 4.7.2

Last Updated 29 Dec 2016

Date Added: 27 Dec 2016

Plugin Homepage


0 stars
0 ratings


Not Enough Data

Works: 0
Broken: 0