• Resolved tibikha

    (@tibikha)


    Hello!

    So i am using mailpoet to send email notifications whenever a new “article” is posted i have them set up more like alerts. so it’s just the most recent article that was published that is sent.

    I manage to get the title of it to use as subject with the help of this shortcode : [newsletter:post_title] but i also need to put the post excerpt in the subject of the email. it is one to 3 words max, but i can’t find any shortcodes for that.

    is there any way to retrieve the except with a shortcode or by creating a custom one ?

    Thank you

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Dani F. a11n

    (@danielinhou)

    Hi there @tibikha ????</img>!

    Thank you for reaching out to MailPoet Support!

    is there any way to retrieve the except with a shortcode or by creating a custom one ?

    There is. You can actually use the Automatic Latest Content Widget to retrieve the article and select the options so that it just shows the Title and the Excerpt.

    Here you can find more info about it: https://kb.mailpoet.com/article/329-automatic-latest-content-widget

    Cheers!

    Thread Starter tibikha

    (@tibikha)

    Hello, Thank you very much for the response.

    I am well aware about the widget and i am using it as well. but i want to add it in the subject of the email next to the title.

    ALERT : [newsletter:post_title] – “Excerpt”

    my Excerpt is only 2 words long and it contains the location

    is that possible ?

    Plugin Support AW a11n

    (@slash1andy)

    Automattic Happiness Engineer

    Hey again @tibikha !

    This is not something that’s possible by default, no.

    This would require some customization via PHP on your end.

    Plugin Support kellymetal a11n

    (@kellymetal)

    Hi there @tibikha,

    In addition to the above, we have a guide for creating a custom shortcode available below. The custom shortcode can be used in the subject line of the emails, as you mentioned you want to do:
    https://kb.mailpoet.com/article/160-create-a-custom-shortcode

    I hope this helps! If you need assistance with custom code, we recommend reaching out to someone from Codeable: https://codeable.io

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘shortcode for post excerpt’ is closed to new replies.