Timeline for wp_redirect not working after submitting form
Current License: CC BY-SA 3.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Apr 27, 2015 at 5:44 | comment | added | Mayeenul Islam |
@s_ha_dum that piece of suggestion is a piece of diamond in a nutshell. :) It explained everything. I tried a lots of ways - all the wp_loaded , template_redirect things, but could not make things work. Thanks a lot.
|
|
Dec 22, 2012 at 18:31 | comment | added | Anagio | Thanks moving the get_header() below the form handling code and redirect worked. I would like to see how to use the hook though. | |
Dec 22, 2012 at 18:25 | comment | added | s_ha_dum | I'll wait awhile and see if @Milo posts an example using a hook, since that is his answer. If not, I'll edit my answer. | |
Dec 22, 2012 at 18:22 | comment | added | Anagio |
Yes there's some HTML, and some more wp functions get_sidebars(), and get_footer() etc. I'm not at all familiar with using hooks but would really like to see an example. I'm already googling and see people talking about add_action('wp_loaded', 'your_function') but really not sure how to use it. Any examples is appreciated thanks
|
|
Dec 22, 2012 at 18:20 | history | answered | s_ha_dum | CC BY-SA 3.0 |