Title: Adding post image into template
Last modified: August 20, 2016

---

# Adding post image into template

 *  Resolved [ryan4021](https://wordpress.org/support/users/ryan4021/)
 * (@ryan4021)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/adding-post-image-into-template/)
 * Hello,
 * From looking at the source code it takes {TEXTSHORTCODE} tags and str_replaces
   them into a mail function to be used.
 * I would like to figure out how to add the blog thumbnail attached to the post
   as well.
 * I would like to add something liek a shortcode like {BLOGIMAGE} or {IMAGE} and
   it formats the image appropriately for HTML emails.
 * Could you please help me out with this?
 * Thank you
 * [http://wordpress.org/extend/plugins/subscribe2/](http://wordpress.org/extend/plugins/subscribe2/)

Viewing 10 replies - 1 through 10 (of 10 total)

 *  Thread Starter [ryan4021](https://wordpress.org/support/users/ryan4021/)
 * (@ryan4021)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/adding-post-image-into-template/#post-3168462)
 * also, I noticed the {TITLE} and {PERMALINK} gives me nothing when testing my 
   send.
 * There’s an ‘error’ message i receive in the email when doing {TINYLINK}.
 * I’m testing a per posed based email so it should be working.
 * Is there something I’m doing wrong?
 * Thanks
 *  [Matt Robinson](https://wordpress.org/support/users/mattyrob/)
 * (@mattyrob)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/adding-post-image-into-template/#post-3168497)
 * [@ryan4021](https://wordpress.org/support/users/ryan4021/),
 * The {IMAGE} shortcode already exists in the paid Subscribe2 HTML version.
 * When you are testing, what error message do you get for the TINYLINK? This should
   fallback silently. Are you testing on a site that has at least one post published?
 *  Thread Starter [ryan4021](https://wordpress.org/support/users/ryan4021/)
 * (@ryan4021)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/adding-post-image-into-template/#post-3168545)
 * Hello,
 * Thank you , i didnt know this about the {IMAGE} shortcode.
 * Yes I have posts already on the blog. It just says ‘Error’ as the message but
   if there’s a var_dump i could maybe possibly place somewhere in your script and
   get some extra details I can do this as well if it helps you out.
 * Thank you
 *  Thread Starter [ryan4021](https://wordpress.org/support/users/ryan4021/)
 * (@ryan4021)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/adding-post-image-into-template/#post-3168546)
 * Let me clarify too, the post link that goes to the post works and generates fine,
   but at the bottom in the default template it says ‘You may view the latest post
   at’ , thats the link that shows error, all the other links seem to work fine 
   though.
 *  Thread Starter [ryan4021](https://wordpress.org/support/users/ryan4021/)
 * (@ryan4021)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/adding-post-image-into-template/#post-3168547)
 * Another question:
 * The digest template, does this run off the new post template but just puts it
   into a loop for the posts you specify in the options?
 * If not, do you know where I would edit the settings for the Digest template notification?
 * Thanks!
 *  Thread Starter [ryan4021](https://wordpress.org/support/users/ryan4021/)
 * (@ryan4021)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/adding-post-image-into-template/#post-3168548)
 * I found this filter inside the source code and was wondering if this would be
   beneficial in filtering the post thumbnail into the $message_post variable?
 * `$message_post = apply_filters('s2_digest_email', $message_post, $now, $prev,
   $last, $this->subscribe2_options['cron_order']);`
 *  Thread Starter [ryan4021](https://wordpress.org/support/users/ryan4021/)
 * (@ryan4021)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/adding-post-image-into-template/#post-3168550)
 * If there is another way to add the thumbnail image in, i just dont want to have
   to spend $40 and $3 a month to put in a simple functionality for image handling.
   Seems like it should have that from the beginning.
 * Thanks
 *  [Matt Robinson](https://wordpress.org/support/users/mattyrob/)
 * (@mattyrob)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/adding-post-image-into-template/#post-3168551)
 * [@ryan4021](https://wordpress.org/support/users/ryan4021/),
 * Your more recent posts are telling me that you are using a periodic email and
   therefore digest mode. It you look in the settings page where the keywords are
   lists next to the template areas you should see that the keywords like {TITLE},{
   PERMALINK} and {TINYLINK} are only for per-post notifications – that’s why it
   isn’t working.
 * The filter you found will allow you to rework the digest email content if desired.
   As for the {IMAGE} tag, you can purchase and cancel the recurring payment if 
   you wish. I’m sure you can understand though that I cannot give the code away
   for free when a great number of people have already paid for that privilege.
 *  Thread Starter [ryan4021](https://wordpress.org/support/users/ryan4021/)
 * (@ryan4021)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/adding-post-image-into-template/#post-3168552)
 * This is fine though i didnt realize there was free updates and support, i thought
   it was just paying for plugin and then you pay for membership access so I was
   confused, makes perfect sense now though.
 * I have another question, I have a plugin called popup domination which lets you
   plug in your HTML newsletter subscribe form into the popup dominator so that 
   it registers to subscribe2 group when people signup.
 * [http://www.popupdomination.com/](http://www.popupdomination.com/)
 * Thanks!
 *  [Matt Robinson](https://wordpress.org/support/users/mattyrob/)
 * (@mattyrob)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/adding-post-image-into-template/#post-3168553)
 * [@ryan4021](https://wordpress.org/support/users/ryan4021/),
 * Sorry if I’ve misled you but you cannot access updates and support on the paid
   forum if you cancel the ongoing support. You can of course always ask for support
   here though.
 * What is your question in relation to the popupdomination plugin?

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Adding post image into template’ is closed to new replies.

 * ![](https://ps.w.org/subscribe2/assets/icon-256x256.png?rev=2318630)
 * [Subscribe2 - Form, Email Subscribers & Newsletters](https://wordpress.org/plugins/subscribe2/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/subscribe2/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/subscribe2/)
 * [Active Topics](https://wordpress.org/support/plugin/subscribe2/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/subscribe2/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/subscribe2/reviews/)

## Tags

 * [image](https://wordpress.org/support/topic-tag/image/)
 * [post](https://wordpress.org/support/topic-tag/post/)

 * 10 replies
 * 2 participants
 * Last reply from: [Matt Robinson](https://wordpress.org/support/users/mattyrob/)
 * Last activity: [13 years, 6 months ago](https://wordpress.org/support/topic/adding-post-image-into-template/#post-3168553)
 * Status: resolved