WordPress.org

Ready to get started?Download WordPress

Forums

MailPoet Newsletters
[resolved] Add Date to Newsletter (5 posts)

  1. wilfil
    Member
    Posted 1 year ago #

    Hi,

    Great plugin but trying to use your new hook to add date to newsletter (format e.g. Tuesday 19th February 2013). Don't seem to have got it right! Please could you help

    Thanks

    http://wordpress.org/extend/plugins/wysija-newsletters/

  2. Ben
    Member
    Plugin Author

    Posted 1 year ago #

    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

  3. badshark
    Member
    Plugin Contributor

    Posted 1 year ago #

    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!

  4. owcv
    Member
    Posted 1 year ago #

    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?

  5. badshark
    Member
    Plugin Contributor

    Posted 1 year ago #

    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!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags