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: