There are a lot of pieces to this puzzle.
You need to be able to convert the postcodes into a numerical data format so you can query the pages/posts with “is greater than [current location minus 5 miles] and less than [current location plus 5 miles”. In two dimensions. This means storing the latitude and longitude with the page. You can automate this, so that your custom postcode field updates custom lat and long fields on save, but obviously that’s some custom code.
See: How can I implement a location based (zip code) search in WordPress?
There is some stuff on there about radiuses (because something both 5 miles north and 5 miles east is actually more than 5 miles away) but if you’re going to show the results on a square Google map then you may as well include what’s in the corners.
Related Posts:
- Modify theme to get page excerpts on front page
- how to get specific page content
- Page displays content from different query?
- How can I get the homepage from the loop?
- How do I evaluate a get_posts array with is_page?
- Print page content with formatting when doing custom SQL query
- How to get an array of pages ID by some page’s slug and all its children pages in get_posts() function?
- Create a new page for each form selection
- Use get_posts() with ‘post’ and ‘page’ queries at the same time?
- How to get from sql query page id and retrieve it url and title
- In WP, Google map error initMap is not a function [closed]
- Get page id by template
- How to load JS and CSS only on specific Pages using is_page()?
- Listing pages which uses specific template [duplicate]
- page title, parent tilte and grand parent title
- How to add jQuery script to an individual page?
- WordPress page edit does not save selected template
- Manual excerpts for pages not working on Search
- Automatically set page order on create page
- WP is not using the select custom template.php that its selected for a page
- Is it possible to set a page template on a dynamic home page (articles list)?
- Page with page template not using template in Preview
- Subpages return 404 error [closed]
- wordpress with many custom styled static pages
- One page – Multiple parents?
- Check whether the child page has siblings
- How to re-order pages en-masse
- wp_dropdown_pages default value
- User capability of create page/new page
- A function like is_page() but returns true if on any sub page of given page
- How to get the excerpt of a page before more tag?
- is_page condition not working
- Using page slug in array
- Shortcode produces blank page
- How WordPress manages nested dropdown?
- Get all children page ID’s including parent by title
- How to modify the default WordPress ‘Pages’ widget to have titles on the anchor tags?
- I have index.php and other files, how do I display other pages?
- is_home() returns TRUE on page template
- Site url is not showing the home page
- I can’t edit my homepage – the page editor is just blank [closed]
- Page redirects to archive
- Restricting Pages based on Hierarchy and User Role
- Pages Column Sorting WordPress Version 3.0.3
- Adding Page URL to the Pages Admin Table
- More Fields Required For Password protect page
- page-name.php doesn’t execute on custom template
- Add categories and posts to page hierarchy
- Admin taking a very long time to load
- how to display sidebar on pages in wordpress
- Hide page templates without using ‘unset’
- Custom page with queries returns 404
- WordPress Site Page Exists but Error 404
- page.php is not called, falls back to index.php
- Custom page in archive page for certain category
- Is it possible to check for shortcodes on a page?
- WordPress 3.2 – removed ability to select a page template in the page attributes when adding a new page?
- Can I “protect” a page with a form asking for an email address?
- Use same page-mypage.php template for several pages
- How do you implement a page template automatically being applied to a page?
- Is it possible to restrict access to specific pages in the admin area based on the page slug?
- Make “default” wordpress pages & features unaccessible
- How to create cutom link for page
- Set a variable to using in redirected page
- creating single page with 2 columns while theme is 3 column
- Outputting content from page
- Use an archive as the parent of a page?
- WordPress Page Protect forwards to Admin Login
- How can I edit pages from my local environment?
- Displaying the blog entries in a Page (using get_posts to retrieve the posts)?
- Different template parts when on different pages
- Updating page template pragmatically
- Why can’t pages be categorized / tagged?
- Adding in additional pages into a custom theme
- List of pages of a specific user
- Multiple meta_key with get_pages
- Sup pages can’t be found
- How to use wp_dropdown_pages or wp_list_pages to accomplish a menu like this?
- Get child pages in get_pages function
- WordPress Page All Content In Template Good Or Bad Convention?
- Bundle a page with custom url and a function
- Custom Upload Adds Ghost File
- Displaying Content Only in Certain Page IDs Not Working
- Widget & storing a Select box choice
- How to Change the path of a child page?
- Annoying notification when trying to create a new page
- Page stuttering on load
- How To List Sibling Pages And Include The Featured Image?
- WP Template Hierarchy – Need help choosing the correct templates
- the_content() Returns post content when I want page content
- disable trashability for certain pages
- how bbPress and buddypress add their own page templates to the page template drop down on the page editing screen
- Can’t select a page using is_page()
- pages won’t show on front page using loop or pre_get_posts
- Does WordPress list all pages for crawlers?
- List of pages – AJAX load more
- one time visit to the page
- How to display child page from specific parent page in homepage?
- How to display text of a page in home or custom page?
- How do I count the number of pages a user has seen on my site, and force them to log in after a certain amount