flowdee / hearthstone-cards

Hearthstone Cards for WordPress automatically adds an overlay to written card names and displays the associated image while hovering them.
https://wordpress.org/plugins/hearthstone-cards/
GNU General Public License v3.0
7 stars 4 forks source link

Adding real shortcodes #34

Open flowdee opened 8 years ago

flowdee commented 8 years ago

e.g. [card]Flamewaker[/card]

Otto42 commented 8 years ago

Avoid using the [shortcode="thing"] style in the long run. While it works, it was never intended, and it also got broken at least once. It was unbroken in a later WP patch, but that is no guarantee it will work forever.

The correct form would be [card]Flamewaker[/card] or [card id="Flamewaker"] or something to that effect. The first one probably makes the most sense.

flowdee commented 8 years ago

Yeah indeed sorry my first example was wrong of course 😄