MD Shortcodes Guide
Refer to this doc for every shortcode available in the MD theme and every official Dropin. Pass in parameters to customize output and easily place powerful content all over your site.
You can render any shortcodes in templates with the do_shortcode() function.
<?php echo do_shortcode( ‘[md email title=”Test”]’ ); ?>
Display highly customizable email forms connected to your MailChimp, ActiveCampaign, AWeber, and other email marketing integrations.
It can now be used in your posts with a simple shortcode. To get alerted of new features like this, join the newsletter:
[md_email title=”Email Form Title” desc=”Some description text” bg_color=”#0073aa” bg_image=”https://domain.com/img.png” attached=”true” text_color=”white” classes=”text-center”]
- title=”” Set the title attribute to adjust the headline that shows at the beginning of your form.
- desc=”” Use this to describe more about your newsletter here.
- list=”” Set a list ID for this email form to subscribe to
- bg_color=”” Set a background color using a color code.
- bg_image=”” Set a background image to any URL.
- email_input_name=”true” If set to true, show name field in email form
- attached=”true” If set to true, the email fields and submit button will attach to each other.
- name_label=”” Change the name field placeholder label
- email_label=”” Change the email field placeholder label
- submit_text=”” Change the submit button text
- footer=”” Add footer/disclaimer text to the bottom of the email form
- text_color=”” Set to white for white text, set to dark for dark text. You can write your own CSS class for this as well if you want a custom text color. Any value you enter here will be prefixed as a CSS class like
- classes=”” Add any custom classes to the email form for more customization.
Trigger MD popups on the click of a button, text, or image. Customize text parameters and create call to actions like content upgrades within posts.
Tip: To get a premade shortcode for each popup, go to MD > Optins > Popups and click “Copy shortcode”
[md_popup id=”popup_id” type=”button” text=”Join the MD newsletter” classes=”mb-single]
Text link popup
Hey, you should subscribe to the newsletter.
[md_popup id=”popup_id” type=”link” text=”subscribe to the newsletter.”]
[md_popup id=”160rXS1″ type=”image” image=”https://marketersdelight.com/wp-content/uploads/2015/07/marketers-delight.png” text=”Add alt text here” classes=”mb-single shadow”]
- id=”” Enter the popup ID to display on click
- type=”” Show trigger as a button, link, or image.
- text=”” Enter the text to display or use as
alttext on images
- image=”” Enter an image URL to display as the background image
- classes=”” Add custom MD helper classes and other CSS classes
With the MD Books dropin enabled you can output one book or a collection of books with this shortcode.
Show collection of random books
Show book(s) by post ID
[book id=”907, 805, 450″ row=”3″]
Show books with excerpt text
[book id=”907″ type=”excerpt”]
- id=”” Enter the post ID of the Book(s) to output, separate with comma
- type=”” Set to excerpt to show title and links
- count=”” Set to the number of random books to display on page load
- row=”” The number of columns books to show per row
Link to a footnote anywhere in post content with MD Footnotes.
Add sources and sub-messages into your text with MD Footnotes
MD Footnotes is a built-in feature that can be enabled in MD > Dropins > Enable footnotes
. With a simple meta box in the post editor
MD Footnotes is compatible with the Classic Editor and new Blocks Editor
you can easily create and manage footnotes and simply reference them with the
To get the shortcode for any footnote, copy the yellow highlighted text next to your footnote and paste it into the location you wish to show that specific footnote in the post content and blocks.
- id=”” The ID of the footnote to reference
- align=”” Set footnote to align right
Loading new replies...