Created
September 1, 2016 15:33
-
-
Save propertyhive/338878e74fc9b18ef7b6ec43c1bf4106 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action( 'template_redirect', 'default_search_form_to_lettings' ); | |
function default_search_form_to_lettings() | |
{ | |
global $post; | |
if ($post->ID == 2) // REPLACE '2' WITH THE PAGE ID OF YOUR LETTINGS PAGE | |
{ | |
$_GET['department'] = 'residential-lettings'; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment