{"id":316749,"date":"2026-06-23T10:02:18","date_gmt":"2026-06-23T10:02:18","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/texas-holdem-cards\/"},"modified":"2026-06-23T10:01:56","modified_gmt":"2026-06-23T10:01:56","slug":"texas-holdem-cards","status":"publish","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/texas-holdem-cards\/","author":23472496,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.1.1","stable_tag":"1.1.1","tested":"7.0","requires":"5.0","requires_php":"7.4","requires_plugins":null,"header_name":"Texas Hold'em Cards","header_author":"wouf","header_description":"Display Texas Hold'em poker cards with the [wouf_card] shortcode. Inline SVG, no images, no JavaScript.","assets_banners_color":"14233f","last_updated":"2026-06-23 10:01:56","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/blog.site2wouf.fr\/texas-holdem-cards-in-wp-blog","header_author_uri":"https:\/\/site2wouf.fr","rating":0,"author_block_rating":0,"active_installs":0,"downloads":28,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.1.1":{"tag":"1.1.1","author":"wouf","date":"2026-06-23 10:01:56"}},"upgrade_notice":[],"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3583014,"resolution":"128x128","location":"assets","locale":"","width":128,"height":128},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3583014,"resolution":"256x256","location":"assets","locale":"","width":256,"height":256}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":3583014,"resolution":"1544x500","location":"assets","locale":"","width":1544,"height":500},"banner-772x250.png":{"filename":"banner-772x250.png","revision":3583014,"resolution":"772x250","location":"assets","locale":"","width":772,"height":250}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.1.1"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3583014,"resolution":"1","location":"assets","locale":"","width":1200,"height":900},"screenshot-2.png":{"filename":"screenshot-2.png","revision":3583014,"resolution":"2","location":"assets","locale":"","width":1200,"height":900},"screenshot-3.png":{"filename":"screenshot-3.png","revision":3583014,"resolution":"3","location":"assets","locale":"","width":1200,"height":900},"screenshot-4.png":{"filename":"screenshot-4.png","revision":3583014,"resolution":"4","location":"assets","locale":"","width":1200,"height":900}},"screenshots":{"1":"Inline hand in a paragraph \u2014 <code>[wouf_card]As Kh[\/wouf_card]<\/code>","2":"Full board with spacer and deck \u2014 <code>[wouf_card align=\"center\"]As Kh _ Td Jc Qh _ PP[\/wouf_card]<\/code>","3":"Face-down hand and board \u2014 <code>[wouf_card align=\"center\"]?? Kh _ Td Jc Qh[\/wouf_card]<\/code>","4":"4-color deck \u2014 <code>[wouf_card colors=\"4\"]As Kh Qd Jc[\/wouf_card]<\/code>"}},"plugin_section":[],"plugin_tags":[14240,12176,80,2904,41632],"plugin_category":[43],"plugin_contributors":[263734],"plugin_business_model":[],"class_list":["post-316749","plugin","type-plugin","status-publish","hentry","plugin_tags-cards","plugin_tags-poker","plugin_tags-shortcode","plugin_tags-svg","plugin_tags-texas-holdem","plugin_category-customization","plugin_contributors-wouf","plugin_committers-wouf"],"banners":{"banner":"https:\/\/ps.w.org\/texas-holdem-cards\/assets\/banner-772x250.png?rev=3583014","banner_2x":"https:\/\/ps.w.org\/texas-holdem-cards\/assets\/banner-1544x500.png?rev=3583014","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/texas-holdem-cards\/assets\/icon-128x128.png?rev=3583014","icon_2x":"https:\/\/ps.w.org\/texas-holdem-cards\/assets\/icon-256x256.png?rev=3583014","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/texas-holdem-cards\/assets\/screenshot-1.png?rev=3583014","caption":"Inline hand in a paragraph \u2014 <code>[wouf_card]As Kh[\/wouf_card]<\/code>"},{"src":"https:\/\/ps.w.org\/texas-holdem-cards\/assets\/screenshot-2.png?rev=3583014","caption":"Full board with spacer and deck \u2014 <code>[wouf_card align=\"center\"]As Kh _ Td Jc Qh _ PP[\/wouf_card]<\/code>"},{"src":"https:\/\/ps.w.org\/texas-holdem-cards\/assets\/screenshot-3.png?rev=3583014","caption":"Face-down hand and board \u2014 <code>[wouf_card align=\"center\"]?? Kh _ Td Jc Qh[\/wouf_card]<\/code>"},{"src":"https:\/\/ps.w.org\/texas-holdem-cards\/assets\/screenshot-4.png?rev=3583014","caption":"4-color deck \u2014 <code>[wouf_card colors=\"4\"]As Kh Qd Jc[\/wouf_card]<\/code>"}],"raw_content":"<!--section=description-->\n<p><strong>Texas Hold'em Cards<\/strong> lets you insert playing cards anywhere in your posts, pages or comments using a shortcode.<\/p>\n\n<p>The main shortcode is <code>[wouf_card]<\/code>. A configurable alias (default <code>[card]<\/code>) is also available.\nCards are rendered as inline SVG: crisp at any size, no external images, no JavaScript.<\/p>\n\n<p><strong>Basic usage:<\/strong><\/p>\n\n<pre><code>[wouf_card]As Kh[\/wouf_card]\n<\/code><\/pre>\n\n<p>Displays an Ace of Spades and a King of Hearts.<\/p>\n\n<p><strong>Rank notation:<\/strong> <code>A K Q J T 9 8 7 6 5 4 3 2<\/code>\n<strong>Suit notation:<\/strong> <code>s<\/code> (\u2660 spades) <code>h<\/code> (\u2665 hearts) <code>d<\/code> (\u2666 diamonds) <code>c<\/code> (\u2663 clubs)<\/p>\n\n<p><strong>Special tokens:<\/strong><\/p>\n\n<ul>\n<li><code>??<\/code> \u2014 face-down card (card back)<\/li>\n<li><code>PP<\/code> \u2014 face-down deck (stack of cards)<\/li>\n<li><code>_<\/code>  \u2014 half-card spacer (visually separates hole cards from the board)<\/li>\n<\/ul>\n\n<p>Spaces, commas, semicolons, hyphens and pipes may be used as visual separators between cards and are ignored during parsing.<\/p>\n\n<p><strong>Shortcode attributes:<\/strong><\/p>\n\n<ul>\n<li><code>width<\/code> \u2014 card width in pixels (default: plugin setting, initially 60 px; min 20, max 300). Height scales automatically at ratio \u00d71.4.<\/li>\n<li><code>align<\/code> \u2014 <code>inline<\/code> (default), <code>left<\/code>, <code>center<\/code> or <code>right<\/code>. Non-inline values wrap the hand in a block-level div.<\/li>\n<li><code>colors<\/code> \u2014 <code>2<\/code> (default: \u2660\u2663 black, \u2665\u2666 red) or <code>4<\/code> (\u2660 black, \u2665 red, \u2666 blue, \u2663 green). The 4-color mode is widely used in online poker for readability.<\/li>\n<li><code>gap<\/code> \u2014 gap between cards in pixels. Defaults to ~8% of card width.<\/li>\n<\/ul>\n\n<p><strong>Plugin settings (Settings \u2192 Texas Hold'em Cards):<\/strong><\/p>\n\n<ul>\n<li>Shortcode alias (default: <code>card<\/code>)<\/li>\n<li>Default card width<\/li>\n<li>Default alignment<\/li>\n<li>Default color scheme (2-color \/ 4-color)<\/li>\n<li>Enable shortcodes in comments<\/li>\n<\/ul>\n\n<p><strong>Examples:<\/strong><\/p>\n\n<pre><code>[wouf_card]As Kh[\/wouf_card]\n<\/code><\/pre>\n\n<p>\u2192 Inline: A\u2660 K\u2665<\/p>\n\n<pre><code>[wouf_card width=\"90\" align=\"center\"]As Kh _ Td Jc Qh[\/wouf_card]\n<\/code><\/pre>\n\n<p>\u2192 Centered, larger cards. Hole cards separated from the flop by a half-card spacer.<\/p>\n\n<pre><code>[wouf_card align=\"center\"]?? Kh _ Td Jc Qh _ PP[\/wouf_card]\n<\/code><\/pre>\n\n<p>\u2192 Hidden card, K\u2665, flop, remaining deck.<\/p>\n\n<pre><code>[wouf_card colors=\"4\"]As Kh Qd Jc[\/wouf_card]\n<\/code><\/pre>\n\n<p>\u2192 4-color deck: \u2660 black, \u2665 red, \u2666 blue, \u2663 green.<\/p>\n\n<pre><code>[wouf_card gap=\"2\"]As Kh[\/wouf_card]\n<\/code><\/pre>\n\n<p>\u2192 Tighter gap between cards.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>In your WordPress admin, go to <strong>Plugins \u2192 Add New<\/strong>, search for <strong>Texas Hold'em Cards<\/strong> and click <strong>Install Now<\/strong>.\nOr upload the <code>texas-holdem-cards<\/code> folder to <code>\/wp-content\/plugins\/<\/code> manually.<\/li>\n<li>Activate the plugin in <strong>Plugins \u2192 Installed Plugins<\/strong>.<\/li>\n<li>Optional: adjust settings in <strong>Settings \u2192 Texas Hold'em Cards<\/strong>.<\/li>\n<li>Use the <code>[wouf_card]<\/code> shortcode in any post, page, widget or comment.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"does%20it%20work%20in%20the%20block%20editor%20%28gutenberg%29%3F\"><h3>Does it work in the block editor (Gutenberg)?<\/h3><\/dt>\n<dd><p>Yes. Use a <strong>Shortcode<\/strong> block and paste your <code>[wouf_card]<\/code> shortcode.<\/p><\/dd>\n<dt id=\"can%20i%20change%20the%20shortcode%20alias%3F\"><h3>Can I change the shortcode alias?<\/h3><\/dt>\n<dd><p>Yes. Go to <strong>Settings \u2192 Texas Hold'em Cards<\/strong>. The main <code>[wouf_card]<\/code> shortcode always remains available.<\/p><\/dd>\n<dt id=\"what%20is%20the%204-color%20mode%3F\"><h3>What is the 4-color mode?<\/h3><\/dt>\n<dd><p>In 4-color mode, each suit has a distinct color: \u2660 black, \u2665 red, \u2666 blue, \u2663 green. This is standard in online poker clients and greatly improves readability when suits matter (flushes, flush draws).<\/p><\/dd>\n<dt id=\"can%20readers%20post%20hands%20in%20comments%3F\"><h3>Can readers post hands in comments?<\/h3><\/dt>\n<dd><p>Yes \u2014 enable \"Shortcodes in comments\" in the plugin settings.<\/p><\/dd>\n<dt id=\"what%20happens%20if%20i%20write%20an%20invalid%20card%20%28e.g.%20%60xz%60%29%3F\"><h3>What happens if I write an invalid card (e.g. `Xz`)?<\/h3><\/dt>\n<dd><p>Invalid cards are silently ignored. The shortcode never produces broken output.<\/p><\/dd>\n<dt id=\"are%20there%20any%20external%20requests%3F\"><h3>Are there any external requests?<\/h3><\/dt>\n<dd><p>No. Everything is inline SVG generated server-side. No fonts, no CDN, no JavaScript.<\/p><\/dd>\n<dt id=\"can%20i%20style%20the%20cards%20with%20css%3F\"><h3>Can I style the cards with CSS?<\/h3><\/dt>\n<dd><p>The hand wrapper has classes <code>thc-hand<\/code> and <code>thc-colors-2<\/code> or <code>thc-colors-4<\/code>. Individual SVGs have inline styles; override them with <code>!important<\/code> if needed.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.1.1<\/h4>\n\n<ul>\n<li>Removed the explicit <code>load_plugin_textdomain()<\/code> call \u2014 translations for WordPress.org-hosted plugins are loaded automatically since WordPress 4.6.<\/li>\n<li>Renamed all internal functions, options and settings groups to use the unique <code>wouf_texas_holdem_cards_<\/code> prefix, avoiding any naming collision with other plugins.<\/li>\n<\/ul>\n\n<h4>1.1.0<\/h4>\n\n<ul>\n<li>Added 4-color deck mode (\u2660 black \u00b7 \u2665 red \u00b7 \u2666 blue \u00b7 \u2663 green) \u2014 global setting and per-shortcode <code>colors<\/code> attribute.<\/li>\n<li>Added <code>gap<\/code> attribute to control spacing between cards.<\/li>\n<li>Added shortcode support inside comments (configurable, enabled by default).<\/li>\n<li>Improved SVG card design: subtle inner border, refined corner layout, slightly larger center suit.<\/li>\n<li>Added <code>wouf-texas-holdem-cards-colors-2<\/code> \/ <code>wouf-texas-holdem-cards-colors-4<\/code> CSS classes on the hand wrapper for easier styling.<\/li>\n<li>Updated admin settings page with new options and examples.<\/li>\n<\/ul>\n\n<h4>1.0.3<\/h4>\n\n<ul>\n<li>Renamed the admin link from Documentation to Settings.<\/li>\n<li>Added plugin settings for shortcode alias, default card width and default alignment.<\/li>\n<li>Kept <code>[wouf_card]<\/code> as the permanent main shortcode.<\/li>\n<li>Set the default alignment to inline, with no block wrapper unless requested.<\/li>\n<\/ul>\n\n<h4>1.0.2<\/h4>\n\n<ul>\n<li>Added a lightweight admin documentation page.<\/li>\n<\/ul>\n\n<h4>1.0.1<\/h4>\n\n<ul>\n<li>Added <code>[wouf_card]<\/code> as the main shortcode.<\/li>\n<li>Kept <code>[card]<\/code> as a backward-compatible alias.<\/li>\n<li>Added support for spaces and common visual separators in shortcode content.<\/li>\n<li>Updated plugin description and WordPress compatibility metadata.<\/li>\n<li>Added translation template.<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Initial release.<\/li>\n<li>Inline SVG cards \u2014 no images required.<\/li>\n<li>Shortcode <code>[card]<\/code> with <code>width<\/code> and <code>align<\/code> parameters.<\/li>\n<li>Special tokens: <code>??<\/code> (card back), <code>PP<\/code> (face-down deck), <code>_<\/code> (spacer).<\/li>\n<\/ul>","raw_excerpt":"Display Texas Hold&#039;em poker hands inline with a simple shortcode. Pure SVG \u2014 no images, no dependencies.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/316749","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=316749"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/wouf"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=316749"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=316749"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=316749"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=316749"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=316749"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=316749"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}