map

[insert_php]
if(isset($_POST[‘SubmitButton’])){ //check if form was submitted
$input = $_POST[‘postcode’]; //get input text
$message = “Success! You entered: “.$input;
}
[/insert_php]

[insert_php] echo $message; [/insert_php]


[insert_php]
if(!empty($input)){
echo ‘[display-posts category=”‘.$input.'” include_date=”false” posts_per_page=”-1″ include_content=”true” order=”ASC” orderby=”title”]’;
}else{
echo ‘[display-posts category=”Map” include_date=”false” posts_per_page=”-1″ order=”ASC” orderby=”title”]’;
}
[/insert_php]