So the reason why I am don't want to include
get_footer() tags is because this page will be loaded as an iframe using the thickbox modal plugin and its content will be a form and I don't want the aforementioned tags to render all the menus and banner images and menus as well as the footer content because it will make for lots of scrolling on this page.
However, current I'm running something like this:
However, when I take out the
my_plugin_add_js' are being added within the body HTML tags at the end and not inside the head tags, like so:
wp_register_script("validate_form", plugins_url('js/my_plugin_validate_form.js', __FILE__), array('jquery', 'validation'), '1.0', true);
So I gather that the 'template_redirect' action hook is not the right one to use.