Newsletters: Shortcodes & Subscribe Form

There are several embedding codes/shortcodes available with the WordPress Newsletter plugin which can be inserted into any WordPress post or page. The shortcodes will be replaced with the appropriate HTML content inside your WordPress posts/pages.


Newsletters History

Display a list inside a WordPress post or page with all your previously sent newsletters from the selected mailing list or mailing lists. These newsletters are taken from the email history. Draft emails will not be displayed in this list.

In order to do this, you will need to do the following:


1. Envelope Icon

When in the Newsletters > Create Newsletter screen, you will see the TinyMCE above the text box which you are typing your newsletter in. Make sure you are in Visual and not HTML view. On the far right of your TinyMCE you will see an envelop icon “Newsletter Functions” click this button and wait for the screen it opens.

This envelope icon is also available on the WordPress post/page editing screen so that you can insert subscribe forms, email history and even use the posts feature.


2. Configuration

Select ‘Email History‘ from a dropdown list and configure those fields accordingly. Once you are happy with your configuration, click the ‘OK’ button to add a shortcode to your Newsletters. On the image above you can see a custom configuration example:
1. Envelope icon – Click on envelope icon to show the drop down list and choose “Email History”.
2. Number – Specify the number of emails/newsletters to display. Leave empty for all.
3. Order By
– You can order by date, subject or time sent.
4.  Order – Ascending or Descending ordering.
5. Mailing List/s -Fill in comma separated list IDs or leave empty for all.
6. Show links only – Turn this on to only show links and not full newsletters.
7. OK button – click the ‘OK’ button to add a shortcode to your Newsletters.


Shortcode is Added

The shortcode is added to the content section in the text editor. You will notice that the shortcode changes dependant on your configuration. It will be like [newsletters_history...] with all the relevant information attached to the shortcode. Try it a few times for yourself and see how it works. An example shortcode:

[newsletters_history number="5" order="DESC" orderby="modified" list_id="3,10" linksonly=1]

Shortcode Parameters
$defaults = array('number' => false, 'order' => "DESC", 
'orderby' => "modified", 'list_id' => false, 'index' => true);


WordPress Post Meta

Output the meta data of a specific WordPress post. You need to specify the attribute/parameter “post_id” inside the shortcode.

[newsletters_meta post_id=7]


Newsletter Subscription Form

There are different ways of embedding/inserting the WordPress Newsletter plugin subscription/opt-in forms into your WordPress website. See the links below for instructions on each of the individual embedding methods available to put a subscription form into your WordPress site.




See a list of available shortcodes here.

Website & Email Hosting

Get the best website & email hosting for speed, security, and peace of mind. No restrictions. Freedom to do what you need in order to run your business.

Host Now

Pin It on Pinterest