242 reputation
211
bio website
location
age
visits member for 3 years, 1 month
seen Jan 31 at 18:26

Jun
22
comment !is_admin() condition turns true in admin pages
Ok, but I have no idea of where the problem could be. there are no other redirects in my function.php! The theme code is here btw github.com/bakaburg1/Overseer
Jun
22
comment !is_admin() condition turns true in admin pages
read my answer below. the problem was that I had to embed 'template_redirect' into 'init' to make it work properly!
Jun
22
answered !is_admin() condition turns true in admin pages
Jun
22
comment !is_admin() condition turns true in admin pages
yep that's my purpose! Mmmm apparently you code is the same as mine but with the !is_admin included in the first statement! and if someone is not logged in you allow him to stay in the front end! You're right that if someone is not logged cannot access backend. So i want to try this: if(!is_admin) wp_redirect(admin_url()); that would do it I hope.
Jun
21
comment !is_admin() condition turns true in admin pages
but it does! 'eppur si muove' quoting someone... :) the various console messages are shot in backend! Anyway, without digging into the problem, which could be the right hook to run that code?
Jun
21
comment !is_admin() condition turns true in admin pages
redirecting not logged in user is the only thing that works :) in the backend. It doesn't work in the front end.
Jun
21
asked !is_admin() condition turns true in admin pages
Jun
19
revised Comments appear in wrong posts
added 596 characters in body
Jun
19
comment Comments appear in wrong posts
I checked, the only pattern I'm seeing is that the articles with the mixed comments are subsequent and with a publication time almost identical. But other
Jun
18
revised Comments appear in wrong posts
added 50 characters in body
Jun
18
asked Comments appear in wrong posts
Feb
10
awarded  Popular Question
Feb
5
answered Millions of Rows — Possible Solutions?
Jan
9
accepted store/cache ajax sent data to avoid repeated request
Dec
16
awarded  Yearling
Oct
28
accepted Make theme editor to show all theme's files
Oct
28
asked Make theme editor to show all theme's files
Oct
23
awarded  Teacher
Oct
15
comment Displaying custom post type on category pages but not on blog listings
what is the $query->query_vars['suppress_filters'] for?
Sep
25
comment Load WP content with ajax less server demanding and faster than normal page loading?
aaaaaaaaaaaaaaahhhh! everyone is giving me a different answer!!!!