Title: teodorcat's Replies | WordPress.org

---

# teodorcat

  [  ](https://wordpress.org/support/users/teodorcat/)

 *   [Profile](https://wordpress.org/support/users/teodorcat/)
 *   [Topics Started](https://wordpress.org/support/users/teodorcat/topics/)
 *   [Replies Created](https://wordpress.org/support/users/teodorcat/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/teodorcat/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/teodorcat/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/teodorcat/engagements/)
 *   [Favorites](https://wordpress.org/support/users/teodorcat/favorites/)

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 43 total)

1 [2](https://wordpress.org/support/users/teodorcat/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/teodorcat/replies/page/3/?output_format=md)
[→](https://wordpress.org/support/users/teodorcat/replies/page/2/?output_format=md)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Chessgame Shizzle] Conflict with Search Input](https://wordpress.org/support/topic/conflict-with-search-input/)
 *  Plugin Contributor [teodorcat](https://wordpress.org/support/users/teodorcat/)
 * (@teodorcat)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/conflict-with-search-input/#post-18381099)
 * It’s OK now. Thank you.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Chessgame Shizzle] Convert FEN to Piece Placement Format](https://wordpress.org/support/topic/convert-fen-to-piece-placement-format/)
 *  Plugin Contributor [teodorcat](https://wordpress.org/support/users/teodorcat/)
 * (@teodorcat)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/convert-fen-to-piece-placement-format/#post-18339940)
 * Well, I used the next code in function.php that creates a custom field cs_chessgame_fen_pieces
   with placement of pieces wRa1 wNb1 bBc8 when a chessgame post is saved. Then 
   I updated all the posts. So, the topic is solved.
 *     ```wp-block-code
       //Generate Custom Field with Placement of Pieces from FENfunction generate_simple_fen($fen) {    $rows = explode(' ', $fen)[0]; // Take only first part of FEN (positon)    $ranks = explode('/', $rows);    $piece_fen = [];    $files = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h'];        foreach ($ranks as $rank_index => $rank) {        $file_index = 0;        for ($i = 0; $i < strlen($rank); $i++) {            $char = $rank[$i];            if (is_numeric($char)) {                $file_index += intval($char); // Skip empty squares            } else {                $color = ctype_upper($char) ? 'w' : 'b';                $piece = strtoupper($char);                $square = $files[$file_index] . (8 - $rank_index);                $piece_fen[] = "{$color}{$piece}{$square}";                $file_index++;            }        }    }    return implode(' ', $piece_fen);}function save_simple_fen($post_id) {    if (get_post_type($post_id) !== 'cs_chessgame') return;    $fen = get_post_meta($post_id, 'cs_chessgame_fen', true);    if ($fen) {        $simple_fen = generate_simple_fen($fen);        update_post_meta($post_id, 'cs_chessgame_fen_pieces', $simple_fen);    }}add_action('save_post', 'save_simple_fen');
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Chessgame Shizzle] Meta Field for FEN](https://wordpress.org/support/topic/meta-field-for-fen/)
 *  Plugin Contributor [teodorcat](https://wordpress.org/support/users/teodorcat/)
 * (@teodorcat)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/meta-field-for-fen/#post-17705408)
 * Yes, it works. Thank you, Marcel.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Chessgame Shizzle] Meta Field for FEN](https://wordpress.org/support/topic/meta-field-for-fen/)
 *  Plugin Contributor [teodorcat](https://wordpress.org/support/users/teodorcat/)
 * (@teodorcat)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/meta-field-for-fen/#post-17696441)
 * The second option is more than enough for me.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Chessgame Shizzle] Meta Field for FEN](https://wordpress.org/support/topic/meta-field-for-fen/)
 *  Plugin Contributor [teodorcat](https://wordpress.org/support/users/teodorcat/)
 * (@teodorcat)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/meta-field-for-fen/#post-17691692)
 * Yes, it’s ok that this metafield for FEN is read-only.
 * You’ve anticipated my next question about a way to update all old chessgames 
   🙂 It would be great if this is possible.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Chessgame Shizzle] Width of the buttons](https://wordpress.org/support/topic/width-of-the-buttons-2/)
 *  Plugin Contributor [teodorcat](https://wordpress.org/support/users/teodorcat/)
 * (@teodorcat)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/width-of-the-buttons-2/#post-17493605)
 * Buttons are OK now. Thank you.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Chessgame Shizzle] Printing PDF](https://wordpress.org/support/topic/printing-pdf-2/)
 *  Plugin Contributor [teodorcat](https://wordpress.org/support/users/teodorcat/)
 * (@teodorcat)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/printing-pdf-2/#post-16653036)
 * Thank you Marcel.
 * Now I see all the diagrams and solutions from several chessgames and I can print
   them as PDF. Great.
 * I added the custom code into my plugin. You are right that others probably don’t
   need it and it’s better not to use it in the chessgame plugin. But I am happy
   to have it. Thanks a lot.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Chessgame Shizzle] invert the Chessboard](https://wordpress.org/support/topic/invert-the-chessboard/)
 *  Plugin Contributor [teodorcat](https://wordpress.org/support/users/teodorcat/)
 * (@teodorcat)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/invert-the-chessboard/#post-16642914)
 * Click e7-square to flip the board.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Chessgame Shizzle] Printing PDF](https://wordpress.org/support/topic/printing-pdf-2/)
 *  Plugin Contributor [teodorcat](https://wordpress.org/support/users/teodorcat/)
 * (@teodorcat)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/printing-pdf-2/#post-16542822)
 * I used plugin Display Posts to show the full content of several chessgame CPT
   on one regular WordPress post.
 * [https://best.chessstudy.art/?p=521](https://best.chessstudy.art/?p=521)
 * This way I can print many CPT items with Prin-O-Matic plugin. But as you see 
   only the chessboard and game text of the first CPT is visible. So, the issue 
   is definitely with the Shizzle CPT.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Chessgame Shizzle] Printing PDF](https://wordpress.org/support/topic/printing-pdf-2/)
 *  Plugin Contributor [teodorcat](https://wordpress.org/support/users/teodorcat/)
 * (@teodorcat)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/printing-pdf-2/#post-16540914)
 * Marcel, I found another good plugin Print-O-Matic for printing single CPT. One
   can target any div id or class that we want to print and ignore anything that
   we don’t want to print.
 * It can’t print several posts.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Chessgame Shizzle] Printing PDF](https://wordpress.org/support/topic/printing-pdf-2/)
 *  Plugin Contributor [teodorcat](https://wordpress.org/support/users/teodorcat/)
 * (@teodorcat)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/printing-pdf-2/#post-16538186)
 * Quick Print is for default WordPress posts and pages only.
 * Go to Print My Blog – Pro Print – Add New Project and add some chessgame custom
   posts for printing.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Chessgame Shizzle] Printing PDF](https://wordpress.org/support/topic/printing-pdf-2/)
 *  Plugin Contributor [teodorcat](https://wordpress.org/support/users/teodorcat/)
 * (@teodorcat)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/printing-pdf-2/#post-16535231)
 * Chessgame Shizzle is the best plugin to make collections of chess games. That’s
   why I want to combine it with the capability of the Print My Blog plugin to save
   in seconds any group of chess games posts as a nice PDF file. For some reason
   when Chessgame Shizzle custom posts are displayed in one place only the chessboard
   of the first post is visible. When the games are inserted in ordinary posts with
   a shortcode (using iframe) they all are visible. Other chess plugins like Embed
   Chessboard (pgn4web) and RPB Chessboard don’t use iframes to add chess games 
   in ordinary posts and each game has the chessboard when printing. So, the issue
   or restriction has to do with the Shizzle custom posts, I think. If this is resolved
   the best chess plugin on Earth will become the best in the Universe.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Chessgame Shizzle] Title from shortcode](https://wordpress.org/support/topic/title-from-shortcode/)
 *  Plugin Contributor [teodorcat](https://wordpress.org/support/users/teodorcat/)
 * (@teodorcat)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/title-from-shortcode/#post-16481965)
 * Yes, I often use custom CSS. You are right that my method to hide the title is
   good till the next update. But I take notes of all the changes I made 🙂
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Chessgame Shizzle] Chessboard not resizing on mobile](https://wordpress.org/support/topic/chessboard-not-resizing-on-mobile/)
 *  Plugin Contributor [teodorcat](https://wordpress.org/support/users/teodorcat/)
 * (@teodorcat)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/chessboard-not-resizing-on-mobile/#post-16481921)
 * You have to override the plugin’s CSS to have a smaller board for mobile screen.
   The styles I use are on this page [https://best.chessstudy.art/?p=95](https://best.chessstudy.art/?p=95)
   with explanations what they do.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Chessgame Shizzle] Title from shortcode](https://wordpress.org/support/topic/title-from-shortcode/)
 *  Plugin Contributor [teodorcat](https://wordpress.org/support/users/teodorcat/)
 * (@teodorcat)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/title-from-shortcode/#post-16476271)
 * Resolved it. Commented the title function (line 39) in chessgame-shizzle/thirdparty/
   pgn4web/cs-template-iframe-extended.php

Viewing 15 replies - 1 through 15 (of 43 total)

1 [2](https://wordpress.org/support/users/teodorcat/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/teodorcat/replies/page/3/?output_format=md)
[→](https://wordpress.org/support/users/teodorcat/replies/page/2/?output_format=md)