• Resolved Danice

    (@danice)


    Hi Matt πŸ™‚

    I’m trying to figure out what I’m doing wrong (I’m assuming it’s me, because your plugin is awesome lol). I have the menu option activated (to hide restricted pages), but it doesn’t seem to be working for me.

    For instance:

    • If a visitor is not logged in, it’s displaying ALL pages in the header menu (like the default WordPress configuration) instead of the menu I assigned to it.
    • However, when a user IS signed in, it DOES display the correct assigned menu.
    • But to the plugin’s credit, it IS restricting access to the pages that are restricted πŸ˜€ lol

    I just need it to:

    1. Display the menu assigned to that location<br>
      – and –
    2. NOT display the pages in the assigned menu that are restricted to non-logged-in users.

    Is this possible? I am willing to provide you with whatever access/information you need to help me figure this out. It’s the last piece in my puzzle to finish up the front-end of this site lol

    Thank you for taking the time to help! I really do appreciate it πŸ™‚

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Danice

    (@danice)

    Okay, so after much prayer asking God to guide me through the issue… I’ve figured out what was going wrong! πŸ˜€ praise the Lord!

    This is what happened:

    • I only have two pages on the website that are publicly viewable to non-logged-in users. (thanks to your plugin, YAY! lol)
    • ALL other pages are “restricted” where only the logged-in user can view them.
    • None of the public pages (that non-logged-in users could view) were in my assigned menu.

    Here’s what I’m guessing went wrong lol:

    • In my mind, I assumed your plugin would just display nothing because there were no pages to display for the non-logged-in user… and I was fine with that… but I was wrong lol
    • Since no menu items were (logically) left to populate the assigned menu, the default (display-all-pages-on-your-site) menu was generated instead.

    So, I guess now I’m asking:
    Can the plugin have an option to do as I expected it to? Can we have a handy little checkbox (like the other ones) in the options/settings for the plugin where it says something like:

    Check this box to display nothing (no menu) when no accessible content can be displayed in assigned menus due to restricted preferences.

    …or something like that lol you’ll probably find a much better way to word it! LOL

    So, I leave it up to you πŸ˜€ well… that’s if you deem this option is a good one to add to the plugin, that is πŸ™‚ lol

    Thank you for all your help! I know God walked me through the troubleshooting, but you helped by supplying the plugin in the first place… thanks πŸ™‚

    Take care and God bless!
    – one happy customer πŸ˜€

    Plugin Author Matt Watson

    (@mwtsn)

    I have added your feature request to my development list here: https://github.com/mkdo/restrict-content-by-role/issues/7

    Sorry it took so long for me to reply, we have had a very busy year at Make Do :-/

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Hide menu items for non-logged-in users’ is closed to new replies.