yo35 / rpb-chessboard

A WordPress plugin to display chess games and diagrams (using the standard FEN and PGN notations).
https://wordpress.org/plugins/rpb-chessboard/
GNU General Public License v3.0
36 stars 16 forks source link

Custom initial position attributes #272

Closed KingstonChess closed 10 months ago

KingstonChess commented 10 months ago

The attributes (e.g. flip=true) for game internal diagrams display are documented when using [fen]...[/fen]. However, when setting up a custom initial position using [FEN"..."] I cannot find the syntax to engage the attributes e.g. to flip the board for a custom initial position.

yo35 commented 10 months ago

The syntax for [pgn]...[/pgn] shortcode attributes is the same as for [fen]...[/fen].For instance, to flip the boards:

[pgn flip=true]

<The PGN text here>

[/pgn]

The list of all attributes supported by the [pgn]...[/pgn] shortcode is given on https://rpb-chessboard.yo35.org/documentation/pgn-shortcode-attributes/.

KingstonChess commented 10 months ago

Thanks, very helpful. BTW my site has been under constant attack (450 failed logins in two days) since I posted the query on GitHub. This is a disincentive to post queries on such a well known and public platform.