• Resolved songiuno

    (@songiuno)


    Hi Aldo,

    How hard, or is it even possible, would it be to tweak the plugin to be able to use it in comments? The reason for this idea is let’s say I post something that is by default viewable by subscribers (unrestricted). In that multiple paragraph post I use the shortcode to make one paragraph restricted to Contributors only.

    Then a logged in Contributor comments on my post, specifically addressing content in that restricted Contributors only paragraph. I would want to use the commensurate shortcode restricting view of that comment, or portions of it, to Contributors only. That, while keeping the comment overall and not having to disallow it.

    I hope that was understandable.

    • This topic was modified 4 years, 11 months ago by songiuno. Reason: correct typo
    • This topic was modified 4 years, 11 months ago by songiuno.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Aldo Latino

    (@aldolat)

    Hi @songiuno,
    by default, WordPress doesn’t render shortcodes in the comments text, but you can activate them, if you want.

    Simply add this line in the file functions.php of your current theme:

    add_filter( 'comment_text', 'do_shortcode' );

    And that’s it.

    Let me know, please.

    Thread Starter songiuno

    (@songiuno)

    Ok, that was certainly easy. Thanks Aldo! You’re awesome!

    Plugin Author Aldo Latino

    (@aldolat)

    You’re welcome! ??

    @aldolat hey greetings developer,

    please help me, can you please update and add this new function to your plugin, i’ve been searching this for months. Literally there is no such plugin found.
    I want to [hide] your text here [/hide]

    This means i want to force any users, subscribers, other admins, anyone to leave comment first then they’re able to view thread or posts.

    Is there any way your plugin could do this “hide content until reply ” please buddy reply sooner.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Use the shortcode in Comments’ is closed to new replies.