WP-Poker WordPress Plugin: Use Shortcode To Display Playing Card Graphic

I went looking for a WordPress plugin that would add playing card graphics to my articles, and I found wpoker by LipaOnline. But I couldn’t get that plugin to work quite properly on this site, so I decided to write my own plugin, WP-Poker.

WP-Poker does the same thing as wpoker and uses its graphics, but it uses the shortcode API provided by WordPress so it should be reliable on current WordPress installations.

WP-Poker creates a shortcode [poker card="Xx"] where Xx is the card you want to display. You can also use X to denote an unknown rank or suit. For example,

[poker card="Qh"][poker card="3s"][poker card="Th"] produces Qh3sTh.

[poker card="Ac"][poker card="Xc"] would display AcXc and would mean any suited ace of clubs hand.

[poker card="As"][poker card="Qx"] would display AsQx and would mean any A-Q hand with the ace of spades.

Finally, [poker card="Xx"] displays Xx and represents any random unknown card.

Right now there are no options. That’s it. But if you want it to do more, let me know, and I can look into it. Use at your own risk, YMMV, yada yada.

Download Plugin

Revision History:

v0.1 (2014-01-31): Convert shortcode [poker card="Xx"] to playing card graphic.