Title: Some Shortcodes not converting correctly.
Last modified: September 17, 2020

---

# Some Shortcodes not converting correctly.

 *  Resolved [Dane Morgan](https://wordpress.org/support/users/danemorgan/)
 * (@danemorgan)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/some-shortcodes-not-converting-correctly/)
 * When a comment is approved, some shortcodes are not working in the email that
   is sent.
 * The [POST_TITLE] and [POST_URL] shortcodes work as expected.
 * The [COMMENT_URL] encodes a link tot he post, with the comment anchor as plain
   text following the link, instead of linking to the comment anchor.
 * The [UNSUBSCRIBE_URL] just prints the shortcode without converting it.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fsome-shortcodes-not-converting-correctly%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Support [gVectors Support](https://wordpress.org/support/users/gvectorssupportmember/)
 * (@gvectorssupportmember)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/some-shortcodes-not-converting-correctly/#post-13423393)
 * Hi [@danemorgan](https://wordpress.org/support/users/danemorgan/),
 * > The [COMMENT_URL] encodes a link tot he post, with the comment anchor as plain
   > text following the link, instead of linking to the comment anchor.
 * It seems you use the Shortcode in the wrong way. Please leave the shortcode view
   you use to allow us to check it.
 * > The [UNSUBSCRIBE_URL] just prints the shortcode without converting it.
 * Please note there is no [UNSUBSCRIBE_URL] in the comment approved email.
 *  Thread Starter [Dane Morgan](https://wordpress.org/support/users/danemorgan/)
 * (@danemorgan)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/some-shortcodes-not-converting-correctly/#post-13434203)
 * Thanks. I will remove the unsubscribe_url shortcode. Currently, this is our email
   template for comment approval.
 *     ```
       <p>Hi there!</p>
       <p>The comment you left on [POST_TITLE] at [POST_URL] was just approved.</p>
       <p>You can view it here: [COMMENT_URL].</p>
       <p><em>If you're not interested in following this discussion any longer you can unsubscribe here: [UNSUBSCRIBE_URL].</em></p>
       ```
   
 * This is the email it generated
 * > Hi there!
   > The comment you left on Email Marketing Service Comparison 2020: GetResponse
   > vs AWeber vs MailChimp vs Constant Contact & More at [https://stage.werockyourweb.com/marketing/email/services/](https://stage.werockyourweb.com/marketing/email/services/)
   > was just approved.
   > You can view it here: [https://stage.werockyourweb.com/marketing/email/services/#comment-20813](https://stage.werockyourweb.com/marketing/email/services/#comment-20813).
   > If you’re not interested in following this discussion any longer you can unsubscribe
   > here: [UNSUBSCRIBE_URL].
 * But the comment link is rendered [https://stage.werockyourweb.com/marketing/email/services/](https://stage.werockyourweb.com/marketing/email/services/#comment-20813)#
   comment-20813
 *  Plugin Support [gVectors Support](https://wordpress.org/support/users/gvectorssupportmember/)
 * (@gvectorssupportmember)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/some-shortcodes-not-converting-correctly/#post-13438484)
 * Hi [@danemorgan](https://wordpress.org/support/users/danemorgan/),
 * Please navigate to the Dashboard > Comments > wpDiscuz > Phrases admin page, 
   copy the content in the “Comment approved message” section and leave it here.
 *  Thread Starter [Dane Morgan](https://wordpress.org/support/users/danemorgan/)
 * (@danemorgan)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/some-shortcodes-not-converting-correctly/#post-13439578)
 *     ```
       <p>Hi there!</p>
       <p>The comment you left on [POST_TITLE] at [POST_URL] was just approved.</p>
       <p>You can view it here: [COMMENT_URL].</p>
       ```
   
 *  Plugin Support [gVectors Support](https://wordpress.org/support/users/gvectorssupportmember/)
 * (@gvectorssupportmember)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/some-shortcodes-not-converting-correctly/#post-13447553)
 * Hi [@danemorgan](https://wordpress.org/support/users/danemorgan/),
 * Sorry for the late response.
    You use the shortcode in the wrong way.
 * You should change the following line:
 * `<p>You can view it here: [COMMENT_URL].</p>`
 * With the following one and check again:
 * `<a href="[COMMENT_URL]">[COMMENT_URL]</a>`
 *  Thread Starter [Dane Morgan](https://wordpress.org/support/users/danemorgan/)
 * (@danemorgan)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/some-shortcodes-not-converting-correctly/#post-13469967)
 * Thank you that fixes it.

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

The topic ‘Some Shortcodes not converting correctly.’ is closed to new replies.

 * ![](https://ps.w.org/wpdiscuz/assets/icon-256x256.png?rev=1076265)
 * [Comments - wpDiscuz](https://wordpress.org/plugins/wpdiscuz/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wpdiscuz/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wpdiscuz/)
 * [Active Topics](https://wordpress.org/support/plugin/wpdiscuz/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpdiscuz/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpdiscuz/reviews/)

## Tags

 * [approval](https://wordpress.org/support/topic-tag/approval/)
 * [email](https://wordpress.org/support/topic-tag/email/)
 * [subscription](https://wordpress.org/support/topic-tag/subscription/)

 * 6 replies
 * 2 participants
 * Last reply from: [Dane Morgan](https://wordpress.org/support/users/danemorgan/)
 * Last activity: [5 years, 8 months ago](https://wordpress.org/support/topic/some-shortcodes-not-converting-correctly/#post-13469967)
 * Status: resolved