• Hello and thank you for a great plugin.

    I know the issue has been raised before but no definite answer was provided.

    The plugin we refer to is H5P (another amazing plugin) and the code it produces is in the form: [h5p id=”2″]
    We would like to hide the content produced by H5P from non-logged users
    Though we tried we didn’t succeed.

    Could you help out?
    Thanks

    We tried various combination

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Andrés Villarreal

    (@andrezrv)

    Hi,

    The correct syntax to hide content from other shortcodes is [hide][my-shortcode][/hide]. However, while that should work for most shortcodes, it really depends on how the output is processed for the shortcode you need to hide. I’d recommend to test it with any of the shortcodes that WordPress includes by default (such as [gallery]), and if that works, you’d need to check how the [h5p] shortcode is constructed by its developers.

    If you could share here some example of how you’re combining both shortcodes, that could help me to debug the issue.

    Best,

    Andrés.

    Thread Starter marikamitsos

    (@marikamitsos)

    Hello Andrés,

    Thank you for the reply.
    As you mentioned ([hide][my-shortcode][/hide]) is the way we use Hide This as well and works flawlessly with other shortcodes.
    What we can not get to work is [hide for="!logged"][h5p id="2"][/hide] which is the code generated by the H5P plugin (or any other combination).

    Our coding knowledge is not proficient enough as to find a solution by analyzing the codes.
    Do you think you can take a look?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to hide a shortcode from another plugin’ is closed to new replies.