Shortcode Reference

DSMTP provides a simple shortcode for embedding newsletter signup forms anywhere on your WordPress site.

Newsletter Signup Form

[dsmtp_newsletter list="your-list-slug"]

Parameters

ParameterRequiredDescription
listYesThe slug of the newsletter list to display

Behavior

  • Renders the signup form with your configured styling (colors, borders, padding).
  • Submissions are handled via AJAX — no page reload.
  • Includes honeypot spam protection (invisible to users).
  • Enforces rate limiting — 5 submissions per IP per 60 seconds.
  • Displays the configured success message on completion.
  • If double opt-in is enabled, sends a confirmation email.

Example

[dsmtp_newsletter list="monthly-updates"]

Place this in any post, page, widget, or template file to show the signup form for the "monthly-updates" list.

Requirements

  • The specified list must exist and be enabled in DSMTP → Newsletter.
  • If the list slug doesn't exist, the shortcode outputs nothing.

Usage Tips

  • Add the shortcode to your sidebar widget for persistent visibility.
  • Embed it at the end of blog posts to capture engaged readers.
  • Create a dedicated landing page with a full-width signup form.
  • Use multiple shortcodes on different pages for different lists.