Infinite Scroll September 27, 2022 by Tarik Billa is_admin() runs when you are logged in as admin in the backend. So you need to do !is_admin() to run for normal users.