Thank Me Later
[resolved] Hyperlinked Comment URL not working since update (3 posts)

  1. footyblogger
    Posted 2 years ago #


    i've been using this plugin for a while with the following code to put a link to the post that a comment author made their comment on:

    Hi [name]

    Thank you for your comment at MyWebsite <a href="[snip]<?php $comment = get_comment($comment_ID, OBJECT); echo get_permalink($comment->comment_post_ID); ?>[/snip]">on this post</a>.

    Since the upgrade it has stopped working and using the shortcode [comment_URL] just inserts the line "http://www.mywebsite.com/uncategorized/sample-post-title/#comment-180" in to the email which is not hyperlinked.

    Can anyone advise on how to get a clickable link to the post someone commented on to appear in the email?



  2. Brendon Boshell
    Plugin Author

    Posted 2 years ago #


    Thank Me Later 3.0 removes support for PHP code in messages. All PHP code gets surrounded by [snip] and needs to be replaced with the relevant shortcode. To get the desired behaviour, you would need something like the following:

    Hi [name]
    Thank you for your comment at MyWebsite <a href="[comment_url attr=1]">on this post</a>.
    Thank you for your comment at MyWebsite. You can find your comment at the following URL: [comment_url]
  3. footyblogger
    Posted 2 years ago #

    That solved it, excellent stuff, thanks Brendon.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Thank Me Later
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic