Fate, randomized.

Where divination meets gamification. MagiCards bridges the gap between static imagery and interactive storytelling with native support for layouts, deck shuffling, and inverted card states.
Built for Tarot readers, game designers, and creators who want to transform visual content into an immersive user experience.

Magicards Documentation

Magicards is a professional WordPress plugin designed to create interactive card decks, memory games, and content grids. It is optimized for the Gutenberg block editor but remains fully compatible with all major page builders.

1. Installation

  1. Download the magicards.zip file.
  2. Go to your WordPress Dashboard: Plugins > Add New > Upload Plugin.
  3. Select the file, click Install Now, and then Activate.

2. Global Settings

Once activated, a new Magicards menu will appear in your WordPress admin sidebar. Here you can configure the global defaults for your decks:

  • Card Size: Define the default width and height (in pixels) for your card thumbnails.
  • Deck Controls: Customize the position and alignment of the interface buttons, and set custom text for the “Shuffle” and “Toggle” buttons.
  • Info Panel: Set the default global colors for the card back (Background, Title, and Text colors).
  • Share: Configure social sharing options, including the tools title, specific socials to display, and default sharing links/titles.

3. Using the Gutenberg Block (Recommended)

The most intuitive way to build your card decks is through the native WordPress Block Editor:

  1. Open a Page or Post.
  2. Click the (+) button and search for the Magicards block.
  3. Configure your deck (images, columns, behavior) using the inspector sidebar on the right.

💡 Pro Tip: Magicards works perfectly in other page builders like Elementor, WPBakery, or Beaver Builder. To generate a custom shortcode easily: insert the Gutenberg block into a draft page, configure it exactly how you want, click the three dots in the block toolbar, and select “Edit as HTML”. Copy the resulting shortcode and its attributes, then paste it into your favorite builder as a standard shortcode.

4. Shortcode Attributes Reference

When using the [magicards] shortcode manually or via the “Edit as HTML” method, use the following parameters:

AttributeDescriptionDefault
idsComma-separated list of attachment IDs for the cards“”
backfaceAttachment ID for the image used as the card back0
colNumber of columns in the grid4
numTotal number of cards to display1
thumbsizeThe WordPress image size used for the cardsmagicard-thumb
updownAllow cards to appear upside down (0 or 1)0
descriptionEnable/Disable the info panel description (0 or 1)0
shareEnable social sharing buttons (0 or 1)0
memoryEnable Memory Game mode (0 or 1)0
onecardEnable Single Card draw mode (0 or 1)0
noshuffleDisable the random shuffle (0 or 1)0
notoggleDisable the manual flip toggle (0 or 1)0
radiusBorder radius of the cards (in pixels)0
panel_bgHex code for the info panel background#333333
panel_titleHex code for the panel title text#ffffff
panel_textHex code for the panel description text#ffffff

Example:[magicards ids="10,11,12" backface="5" col="3" memory="1" radius="10" panel_bg="#000000"]

5. Content Customization

Magicards pulls data directly from your WordPress Media Library items to populate the cards and the info panel:

  • Caption: Displays as the main heading in the info panel.
  • Description: Displays as the body text in the info panel.
  • Upside down: A specialized field that replaces the default Description if the card appears reversed (only when updown is enabled).
  • Title and Alt Text: Used for accessibility and SEO.

6. Advanced Layouts

You can apply specialized layouts by adding these classes to the “Additional CSS classes” field in the block settings:

  • cross-layout (9 cards, 3 columns)
  • h-layout (9 cards, 3 columns)
  • star-layout (6 cards, 3 columns)
  • plus-layout (9 cards, 3 columns)
  • x-layout (9 cards, 3 columns)

7. Custom CSS

Each Magicards block supports custom CSS. Use the .magicard-item selector to target specific card styles. Styles added via the Gutenberg block are scoped to that specific page for optimal performance.