gregclubhouse
Forum Replies Created
-
Yes, I already tried to remove the cache.
If the user is already logged in, it temporarly displays the WordPress header correctly and so the function returns his correct ID, but if the user disconnects and then reconnects (or just if any other user logs in), the same problem happens again : no WordPress header and ID = 0.
To me, the main issue comes from this WordPress header not showing up on the courses page (it’s the only page that behaves like this).
Is it a normal behaviour? Maybe I just need to change some settings so that the header always shows up?
It seems a bit tedious to have to clear cache every time a user logs in…
Thanks for your answer.
Did you try when connected with an admin account?
Because myself too, I can get the ID of the user logged when I test it with my admin account (in that case, the WordPress header appears on top of the page).
But if I try to do it by connecting manually to another account, the function always returns 0 because it considers that the user is not logged in.
Is it normal that I don’t see the WordPress header on top of the courses page when connected with a non-admin account?