Support » Plugin: Email Users » Post image + Unsubscribe link

  • Resolved underthecover


    Hi there,
    Two quick questions:

    1. Is there a way to include the post featured image in the emails when using “Notify Users About this Post”. I use the plugin for notifying users about Products (not real Posts) – how can I accomplish this?

    2. Is there a way to include a unsubscribe button in the emails?

    Thank you for your help!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Mike Walsh


    1. Email Users relies on the_content() to process the post content prior to adding it to the email body. If the_content() supports featured images then it should work. You may also be able to use a filter to accomplish what you want as well.
    2. No, there is not. Because the subscription management works through the user profile on the WordPress Dashboard, there isn’t an easy way to do this.

    I’m already using %POST_CONTENT%, but all I get is the Post Description (in my case, Product Description). No featured image is added to the emails.

    You mention a second method using a filter. I’m afraid this is beyond my capabilities. Is there a code I can add to .php functions? Would it be too much to ask for you to share the code?

    Sorry for the newbie questions.
    Thank you!

    Plugin Author Mike Walsh


    I’ve just posted an update to Email Users which adds a new substitution keywork – %POST_FEATURED_IMAGE%. See if this will address what you are trying to accomplish.

    Featured images are also known as “post thumbnails” and WordPress supports several sizes and a theme can then define additional sizes. What I’ve implemented is the “default” size which is usually set by the theme. I believe if the theme doesn’t set the default size, WordPress will return the thumbnail size. I am using get_the_post_thumbnail() to get the image.

    • This reply was modified 7 months, 3 weeks ago by  Mike Walsh.

    WOW, Mike! This is magnificent support! Worked like a charm.

    It seems my theme returns a full size thumbnail, but it’s very easy to manually adjust the image to medium size before sending out the emails.

    Congratulations for this awesome plugin and thank you so much for all your help.
    Kind regards,

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Post image + Unsubscribe link’ is closed to new replies.