Reputation
271
Top tag
Next privilege 300 Rep.
Create new tags
Badges
4 21
Impact
~33k people reached

Sep
30
asked Override email_exists function
Sep
24
awarded  Autobiographer
Aug
4
comment If User is NOT Logged in and Page ID is not 6 - Redirect to Login
Just had a light bulb moment. As this script is being run in the header, does it even know what pageid 6 is?
Aug
4
comment If User is NOT Logged in and Page ID is not 6 - Redirect to Login
I have tried it there already, it made no difference. Really confused
Aug
4
comment If User is NOT Logged in and Page ID is not 6 - Redirect to Login
The first rule works correctly - The Second Rule Prevents Anybody From Logging In - the Third Rule Works Correctly
Aug
4
revised If User is NOT Logged in and Page ID is not 6 - Redirect to Login
added 81 characters in body
Aug
4
comment If User is NOT Logged in and Page ID is not 6 - Redirect to Login
I did but there is still no change. I have updated my original post again with some details on where this is running from in the page, maybe that might help?
Aug
4
comment If User is NOT Logged in and Page ID is not 6 - Redirect to Login
Yep, page is published and live
Aug
4
comment If User is NOT Logged in and Page ID is not 6 - Redirect to Login
Good point, I have changed it again but it is still not working as expected. I have updated my original post with my current code
Aug
4
revised If User is NOT Logged in and Page ID is not 6 - Redirect to Login
added 675 characters in body
Aug
4
comment If User is NOT Logged in and Page ID is not 6 - Redirect to Login
Hi,I have tried amending things but it still isn't working for me. Curiously, any page on my site that has the number 6 anywhere in the title is also blank. Connected?
Aug
4
asked If User is NOT Logged in and Page ID is not 6 - Redirect to Login
Jul
13
awarded  Popular Question
Jul
2
awarded  Curious
May
20
accepted Maintenance mode just for WooCommerce shop pages
May
20
asked Maintenance mode just for WooCommerce shop pages
May
1
asked Permalink clashing with Custom Post Type rewrite rule
Apr
29
asked Limit roles displayed in users.php depending on custom role
Apr
29
comment Hide plugin dashboard menu item for specific roles
Much better way of doing it, thanks for the pointers
Apr
29
accepted Hide plugin dashboard menu item for specific roles