WordPress.org

Support

Support » Plugins and Hacks » MailPoet Newsletters » [Resolved] Add Date to Newsletter

[Resolved] Add Date to Newsletter

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello there,

    Are you talking about our new shortcodes feature?
    If so I believe this article will be a good guide for you : http://support.wysija.com/knowledgebase/hook-to-add-your-own-shortcode/

    Hope this helps,
    Cheers,
    Ben

    Hi!

    I can surely help you in setting up the hook, but I think that in your case is not necessary to use the hook.

    The shortcodes for all types of dates are already built into the plugin.

    In the editor, when adding a text, you can click on the shortcodes button (the profile icon) and you’ll be able to select all type of dates.

    You can do it manually too, here are the date shortcodes for your example:

    – Tuesday 19th February 2013
    – [date:dtext] [date:dordinal] [date:mtext] [date:y]

    Let me know if it works.

    Thanks!

    Nice thing, but translation doesn’t work on this? And how to format for example YYYY-MM-DD, that way that it puts a zero if the day or month number just has one digit?

    Hi!

    Yes, you are right, translations are still not working on these shortcodes, we just launched this new functionality and we’ll surely support translations in the future.

    Right now, we don’t have a shortcode for the leading zero in day or month, but we’ll introduce it in the next versions of the plugin.

    You can use the hook (filter) to customize the shortcodes as you want.

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] Add Date to Newsletter’ is closed to new replies.
Skip to toolbar