WordPress.org

Ready to get started?Download WordPress

Forums

How to allow shortcodes in comments (3 posts)

  1. Deeje
    Member
    Posted 4 years ago #

    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!

  2. esmi
    Forum Moderator
    Posted 4 years ago #

    Try adding it to your theme's functions.php file.

  3. Deeje
    Member
    Posted 4 years ago #

    Made no difference.

Topic Closed

This topic has been closed to new replies.

About this Topic