I implemented a similar custom store locator for a client, and what I ended up doing was saving each lat / lon pair as post meta for a single location
post type, and then assigning each location
post type to a parent store
post type. that way, a single store could have multiple unique locations. location posts were hidden in admin and managed via a custom meta box within the store post type.
Related Posts:
- what is the correct way to compare dates in a WP query_posts meta_query
- Advanced search form with filters for custom taxonomies and custom fields
- Custom field values deleted when trashing custom post type
- How to get all custom fields of any post type
- Admin Area Custom Type Search By Meta Fields Without Title & Content
- How do I Paginate Search Results for Custom Post Types?
- Custom Post Type with Input fields to seperate table on database.
- How Can I save multiple records in same meta key?
- Detect meta value changes when post is updated (post_updated)
- Search everything (posts, pages, tags, cpt, meta)
- How to get source of custom meta image?
- Displaying Meta Box Image
- ACF Upload Image in repeater from front-end with custom form? – add_post_meta()
- Formatting custom meta box date from YYYY/MM/DD to a more readable alternative
- Create a random unique 6 digit number as custom field for custom post type
- how to interconnect custom post types?
- List all images from a single post meta value
- Populate Custom Fields in a Custom Post Type?
- Meta Key Value in current-user-only loop
- How to check if user meta field is empty in conditional else statement
- Posting to a Custom Post Type from front end – user generated content
- Update Post Meta for a logged in user
- A better way to add a meta box to custom post types
- Two Custom Post Types Many to Many Relationship
- get_post_meta not working on publishing
- How do I set all of a particular post meta to a value within the custom post type I’m in?
- Custom fields (wp_post_meta) vs Custom Table for large amount of data
- Importing Data from a Non-WordPress database, into WP
- How to add multiple markers on the google map, at a certain meta_key and meta_value
- Custom fields for custom post type
- Check if post with same meta value exists
- Submitting Custom Post Types with custom fields from Front-end form
- create custom meta box with default value
- delete_post_meta() for whole CPT / multiple posts?
- How to get specific post meta by title or id
- copy images from custom field to another custom field
- How to show custom field on specific custom post type posts only when filled
- Cannot obtain custom meta information
- How can I output WPAlchemy repeating fields meta values in my page template?
- How to call a post’s metadata in shortcode.php?
- delete duplicate meta_value with same post_id
- Search CPT Title AND Meta
- updating one custom meta field only
- Add a class to post_class if more than one post shares same meta_value_num
- Add a meta field to the list of results for a custom post type
- Empty meta-box returns publishdate if no value is set?
- Filter search posts by post meta?
- Custom fields for post or terms which don’t update on post update
- Custom Post Type meta data getting deleted on bulk editing taxonomies
- Unable to gather Image URL from Custom Post Type’s; Custom Meta Field
- How to keep custom post type related information
- How can I add a meta[] to my custom post type and search by term with the Rest API?
- Show posts from WP Custom Post Type selected from a field in a metabox
- Creating an archive page or simple template to list all values of a custom field of specific post type listing
- Where is get_post_meta value located?
- Custom meta fields not showing up in WP_Response Object via custom endpoint
- How to Disable option of meta field if that option is selected for any other post in custom post type?
- Add more custom fields when creating a new custom post type
- How do I extract the contents of a CPT’s custom field for all posts?
- Delete custom post type metadata without deleting the post in admin area
- How can I get the $key / $value pairs of custom fields that were added via 3rd party plugins or themes?
- How to add post reference field to a plugin?
- I want to split this into two functions
- Advanced search form with filters for custom taxonomies and custom fields
- Querying meta values within an array
- How to grab data (titles, thumbnails and custom fields) from multiple posts to populate a new array efficiently?
- Display a list of posts whose meta field values are equal to the ID of the post being viewed?
- Check for custom field value in different post type than current one and do something
- Getting a “Changes you made will be lost” dialog prompt on a custom post type page
- Saving repeated option values in a custom query
- How to remove slug metabox from custom post type’s page?
- Does WordPress limit the length of slug names for Post Meta or Terms?
- Undefined Variable – Custom Post Type Meta
- How do I create custom fields for multiple post types?
- Add a custom meta box for client to order CPT posts how they want
- Custom Taxonomy Search result page
- Increasing the default number of posts in custom post types
- Echo custom post meta from options array
- Value of post meta dropdown is not showing in WordPress
- Get post-meta value of all custom-posts – lowest to highest year-count?
- add_filter get array data before display in custom post_type
- Get previous and next custom post by custom field
- Should I use a custom taxonomy or custom post type for grouping a list of panels associated with a group of tests?
- WP Admin Dropdown List Filter for custom (ACF) field on custom post type(s)
- Peepso: Add extra data field (custom post meta) to postbox
- Show Post columns to specific users on condition
- Change picture attachment meta of all occurrences of a picture
- Unknown Post Meta Records
- Get Previous Post based on Custom Field Name, for Custom Post Type
- Populate custom post type/custom fields from an external database
- Custom Field to post_title
- Stripe multiple transactions
- Get month and day from a Date Picker custom field
- Query Distinct Taxonomies of Custom Post Type
- Timetable of Custom Meta Data using Custom Post Type and Custom Taxonomy
- Change the contents of a dropdown through the admin panel?
- loop through custom post-type with two meta_keys
- fetch meta fields inside a widget
- Use a Variable in update_post_meta as the $meta_key
- Custom Sort Order for Custom Post Type Taxonomy