• Resolved PrivateBlogger

    (@privateblogger)


    I would like to add the featured image into my post notification emails.
    However, the existing shortcode [featured_image] inserts the URL to the featured image in the emails. This looks not very nice.

    Would it be possible to insert the featured image as an image into the notification email just like other images within the post content?

    I would like to have the message text like this:
    [post_title] –> works as expected and displays the post title in bold

    [featured_image] –> should display the featured image (currently it displays only the URL)

    [post_content] –> works as expected and shows the post content including all images exactly as on the website.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author bnfw

    (@voltronik)

    Hi @privateblogger,
    Thanks for your message.

    Some shortcodes require a bit more attention than others. E.g. some are outputted as just URLs, others output as properly formatted links. This is mostly because of how WordPress stores them and so you may need to add some code around them to get them to show how you’d like.

    In your case, you can add <img src="[featured_image]"> to the ‘Text’ tab of the Notification Editor and then this should show the featured image as a proper image for you in your notifications as opposed to just the URL.

    Hope this helps.

    Thread Starter PrivateBlogger

    (@privateblogger)

    That works as expected! Thanks a lot for the quick and professional help.

    Plugin Author bnfw

    (@voltronik)

    Hi @privateblogger,
    Great! Glad you got it working.

    If you like BNFW and the support, please feel free to leave an honest review.

    Please ignore.works as expected ??

    even with the in the Text area of notification editor, only the url is sent in the email and not the image itself.
    Need help resolving this

    Plugin Author bnfw

    (@voltronik)

    Hi @thismaterialgirl,
    Can you confirm that you’ve added the code to the Text tab of the WYSIWYG editor?
    If not, can you copy and paste the content of your notification from the Text tab of the WYSIWYG editor here so I can see what the issue might be?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Shortcode [featured_image] inserts URL instead of image’ is closed to new replies.