Wp_redirect and sending variables

How to send some variables with wp_redirect() from function.php file in my theme folder? if ( $post_id ) { $variable_to_send = ‘1’; wp_redirect( home_url(), $variable_to_send ); exit; } And on homepage I will catch the variable in if-else condition to show some confirmation or not depending if $variable_to_send = ‘1’ or not. How to do … Read more

Redirect from an HTML page

Is it possible to set up a basic HTML page to redirect to another page on load? 2 25 Try using: <meta http-equiv=”refresh” content=”0; url=http://example.com/” /> Note: Place it in the head section. Additionally for older browsers if you add a quick link in case it doesn’t refresh correctly: <p><a href=”http://example.com/”>Redirect</a></p> Will appear as Redirect … Read more