Change WordPress user roles and capabilities Forums How to or FAQ Where is the shortcode documentation?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1336
    jpweber
    Participant

    I would like to hide a link on the landing page of each sub-site of my multisite installation:

    Administrator Login

    Specifically, I would like to hide this from anybody who isn’t a site administrator.

    It says there’s a shortcode for this, but I’m unable to find it. I see a custom field has been generated on pages and posts.

    But my entire homepage is widgetized. Is there a way to use this shortcode in some type of text widget, or something, so I can hide this link on the hompage of a sub-site?

    Any guidance would be appreciated.

    Thanks!

    #1340
    Vladimir
    Keymaster

    Those shortcodes work inside post or page content only:
    https://www.role-editor.com/shortcode-content-view-access-restriction/

    This plugin may help you a lot with widgets conditional hide/show:
    http://wordpress.org/plugins/dynamic-widgets

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.