Ed Miller Poker

Learn to play live and online no-limit Texas Holdem cash games, 6-max games, and tournaments like a professional.

  • Facebook
  • RSS
  • Twitter
  • Home
  • News
  • Shop
  • Articles
  • About
  • Contact Us

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.

Join 8792 other players who receive news, discounts, updates, and FREE articles from Ed Miller by email.

Thank you, your sign-up request was successful! Please check your e-mail inbox.
Given email address is already subscribed, thank you!
Please provide a valid email address.
Oops. Something went wrong. Please try again later.
  • Privacy Policy

Copyright © 2019 · Enterprise Pro Theme on Genesis Framework · WordPress · Log in