custom function works on page.php template but not in functions.php
Sounds like you’ve got a fun challenge on your hands. When you’re checking $_POST directly in functions.php, it might be too early in the WordPress lifecycle for the data to be available, or the action may be bypassing the logic you’re expecting. Instead of using an empty action attribute in your form, it’s typically best … Read more