How to show popup to a group of users?

The way I’d approach this problem is to give a certain role to users you want to be shown the popup. ( If you’re looking to show the popup to different users that are logged out of WordPress, that’s out of scope for this StackExchange. ) I’d then use the wp_loaded hook to check the … Read more

how do i get a greeting for logged in uses by the time of day

I can see two very obvious flaws that might be holding you back. $t=date(“H”); gives you a formatted date as a string while if ($t<“12”) and else if ($t<“18”) are trying to do maths on words. Consider $t=(int)date(“H”); (force the answer to be a whole number) with if ($t<12) and else if ($t<18) which at … Read more