Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save propertyhive/5d017385cc7dbd844616818889258e1b to your computer and use it in GitHub Desktop.
Save propertyhive/5d017385cc7dbd844616818889258e1b to your computer and use it in GitHub Desktop.
Russell Map View Followed by List
add_action( 'init', 'show_map_by_default', 1 );
function show_map_by_default()
{
$_GET['view'] = 'map';
}
add_action( 'init', 'maintain_property_list', 1 );
function maintain_property_list()
{
add_filter( 'propertyhive_show_results', create_function( '', 'return true;' ), 10 );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment