Title: Really working code with PGN-note using your shortcode
Last modified: December 5, 2021

---

# Really working code with PGN-note using your shortcode

 *  Resolved [alexich1960](https://wordpress.org/support/users/alexich1960/)
 * (@alexich1960)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/really-working-code-with-pgn-note-using-your-shortcode/)
 * Hi Marcel,
    Will You please show how to insert pgn-game into standart post. I
   can’t do that. Sorry, your tips are not clear For instance, this game
 *     ```
       [Event "1<sup>st</sup> American Chess Congress"]
       [Site "New York, NY USA"]
       [Date "1857.11.03"]
       [Round "4.6"]
       [White "Paulsen, Louis"]
       [Black "Morphy, Paul"]
       [Result "0-1"]
   
       1. e4 e5 2. Nf3 Nc6 3. Nc3 Nf6 4. Bb5 Bc5 5. O-O O-O 6. Nxe5 Re8 7. Nxc6 dxc6
       8. Bc4 b5 9. Be2 Nxe4 10. Nxe4 Rxe4 11. Bf3 Re6 12. c3 Qd3 13. b4 Bb6
       14. a4 bxa4 15. Qxa4 Bd7 16. Ra2 Rae8 17. Qa6
   
       {Morphy took twelve minutes over his next move, probably to assure himself that
       the combination was sound and that he had a forced win in every variation.}
   
       17... Qxf3 !! 18. gxf3 Rg6+ 19. Kh1 Bh3 20. Rd1 ({Not} 20. Rg1 Rxg1+
       21. Kxg1 Re1+ -+) 20... Bg2+ 21. Kg1 Bxf3+ 22. Kf1 Bg2+
   
       (22...Rg2 ! {would have won more quickly. For instance:} 23. Qd3 Rxf2+
       24. Kg1 Rg2+ 25. Kh1 Rg1#)
   
       23. Kg1 Bh3+ 24. Kh1 Bxf2 25. Qf1 {Absolutely forced.} 25... Bxf1 26. Rxf1 Re2
       27. Ra1 Rh6 28. d4 Be3 0-1
       ```
   
 * Thanx

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [Marcel Pol](https://wordpress.org/support/users/mpol/)
 * (@mpol)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/really-working-code-with-pgn-note-using-your-shortcode/#post-15155148)
 * Hi Alex,
    Not sure what the confusion is, I will try to help.
 * There are different shortcodes, one for an upload form. The shortcode for the
   upload form can be placed in a page. When visiting that page, you can upload 
   a pgn through a frontend form. The fields for that should be mostly self-explanatory.
 * On the admin dashboard you can also upload a pgn game.
    Go to Dashboard > Chessgames
   > New Chessgame. Then there should be a metabox where you can paste the pgn in
   a textarea, together with other input fields. It could be that the metabox is
   not visible. In that case you can click on “Screen options” on the top right 
   and make the metabox visible (at least with the classic editor).
 * If you still cannot manage, can you tell where it goes wrong?
 *  Thread Starter [alexich1960](https://wordpress.org/support/users/alexich1960/)
 * (@alexich1960)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/really-working-code-with-pgn-note-using-your-shortcode/#post-15155427)
 * Hi Marcel,
    Thanx for responce,
 * look at 2 options. link [https://disk.yandex.ru/i/GWRKchWCCP1mJw](https://disk.yandex.ru/i/GWRKchWCCP1mJw)
 * First. I’m putting shortcode & pgn code into your plug-in form: New Chessgame.
   And as you can see the diagramm in the window right corner shows the final position
   of this game. SPLENDID!
    But… Nothing discovered on the site page
 * Second.
    I’m putting shortcode & pgn code into the body of the tipical post. 
   And we can see the title of this post, its movies. Without chessboard. Where 
   I mare a mistake. Everything works, but only half`
 *  Plugin Author [Marcel Pol](https://wordpress.org/support/users/mpol/)
 * (@mpol)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/really-working-code-with-pgn-note-using-your-shortcode/#post-15161260)
 * Hi, ah there are some misunderstandings 🙂
 * That shortcode is meant for visitors to send in a chessgame. The most usual place
   for that shortcode is a page, which you can put in the main menu for example.
   
   Example: [https://svpegasus.nl/algemeen/partij-inzenden/](https://svpegasus.nl/algemeen/partij-inzenden/)
 * Games will be uploaded/added as the posttype cs_chessgame, at Dashboard > Chessgames.
 * To show a list of chessgames, there is another shortcode for a simple list, that
   is also meant to be in a page.
    Example: [https://svpegasus.nl/algemeen/partijen/](https://svpegasus.nl/algemeen/partijen/)
 * If you want something else, which is fine, like standard posts with a chessgame
   as part of the content, you could look into this plugin:
    [https://wordpress.org/plugins/embed-chessboard/](https://wordpress.org/plugins/embed-chessboard/)
   It is made by the author of the game viewer. My plugin is mostly aimed at showing
   a list of chessgames, and also to offer some chessgame widgets.
 *  Thread Starter [alexich1960](https://wordpress.org/support/users/alexich1960/)
 * (@alexich1960)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/really-working-code-with-pgn-note-using-your-shortcode/#post-15165527)
 * Marcel, thanx a lot for your time and tips.
    Course, I know embed-chessboard 
   plug-in. But its not so visually impressive as yours.
 *  Plugin Author [Marcel Pol](https://wordpress.org/support/users/mpol/)
 * (@mpol)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/really-working-code-with-pgn-note-using-your-shortcode/#post-15165884)
 * Thank you.
 * Embed Chessboard does have options that this plugin doesn’t have though.
    I do
   know websites that use both plugins, they don’t have conflicts as far as I know.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Really working code with PGN-note using your shortcode’ is closed to 
new replies.

 * ![](https://ps.w.org/chessgame-shizzle/assets/icon-256x256.png?rev=1956331)
 * [Chessgame Shizzle](https://wordpress.org/plugins/chessgame-shizzle/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/chessgame-shizzle/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/chessgame-shizzle/)
 * [Active Topics](https://wordpress.org/support/plugin/chessgame-shizzle/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/chessgame-shizzle/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/chessgame-shizzle/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Marcel Pol](https://wordpress.org/support/users/mpol/)
 * Last activity: [4 years, 5 months ago](https://wordpress.org/support/topic/really-working-code-with-pgn-note-using-your-shortcode/#post-15165884)
 * Status: resolved