• Hi,

    i use Visual composer for my theme and unfortunately the editor add systematicaly a row outside this shortcode [/wpum_restrict_logged_in] and was not considerated.

    I’m trying to insert this shortcode inside header and footer page but wordpress doesn’t understand this format just the fist one (header) is considerated :
    header :
    if(is_page('espace-adherents')){echo do_shortcode('[wpum_restrict_logged_in]' );}
    footer
    if(is_page('espace-adherents')){echo do_shortcode('[/wpum_restrict_logged_in]' );}
    For the footer the shortcode display like this [/wpum_restrict_logged_in] instead to be invisible and the content stay visible for all user instead of visible only for registered users.

    Do you have a solution or a hook.
    Thanks

    https://www.ads-software.com/plugins/cimy-user-extra-fields/

  • The topic ‘How to insert self closing shortcode inside header and footer pages’ is closed to new replies.