Support » Fixing WordPress » How to allow shortcodes in comments

  • I have a self-hosted private music collaboration site where my friends and I can upload files and then enter a quick shortcode to that file in a comment so others will be able to access it and work on it.

    Here’s the problem. Right now, when you type in a shortcode, it isn’t parsed into a link as it is within posts and pages. I was told to use the function:

    add_filter( 'comment_text', 'do_shortcode' );

    …but I honestly have no idea which file I need to add that line to or if that’s really the solution. Any noob-friendly instruction will be appreciated!

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to allow shortcodes in comments’ is closed to new replies.