Hooks not working on live server

get_footer hook fires before the footer template file is loaded. Note: This hook is best to use to set up and execute code that doesn’t get echoed to the browser until later in the page load. Anything you echo will show up before any of the markup is displayed. Besides, make sure you call the … Read more

wp_footer content appearing in admin area

That’s because you’re not using add_action correctly, what you’ve written is functionally the same as this: function xyz_footer_print() { echo ‘footer script here’; } $value = xyz_footer_print(); add_action( ‘wp_footer’, $value ); xyz_footer_print() immediately runs the function and returns nothing. As a result your add_action call says that on the wp_footer even, do nothing. So you … Read more