Tactic Puzzles
To display tactic puzzles on your WordPress site, follow this recipe:
- Upload the PGN file from Import PGN.
- Once finished, you will see a message saying that the file was imported and with a numeric ID at the end, example: 6. You can also find the id easily from the game editor. It’s clearly visible inside a blue bubble in the list of databases.
- Inside your WordPress post editor, insert the following tag:
[chess tactics="1" db="6" tpl="1"] - Save the post
This is an example of a short tag. The short tags name isĀ chess. Inside the tag, we have attributes. tactics="1" says that we want to show a tactics board. db="6" refers to the database we just imported. The tpl attribute is optional(default=1). It is a number which refers to which view template to use when rendering the board.
Here's the result of our tag:
In the Tactic Puzzles option of games from pgn file I am not able to visualize the names of the players when the diagram is presented. There always comes a #, then a script, and then the player name of white pieces.
How do you have to make the name of the two players appear?
In the example of this page, after the # a correlative number is shown when clicking on the next option.
What pgn tag contains that number?
How to change orientation I mean flip the board ?
Orientation in tactic puzzles is determined by the result tag in the pgn (“1-0” = “white”, “0-1” black)