Overview:
The primary purpose of the site is to provide listings of bicycle routes (mountain bike and road bike) to site users. On the individual listings pages for the bicycle routes, we are using the WP GPX Map plugin (https://wordpress.org/plugins/wp-gpx-maps/) to present the route map. We have modified the listing page to present the route map at the top of the listing page.
Current workflow requires (2 Step):
1) Create Listing – When a listing is added via the Add Listing page, the GPX File Name is manually entered by user into a Custom Text Field (example file name “bike_route_map.gpx”)
2) Upload GPX File – Separately, the .gpx map must be added to WP GPX Map plugin via WordPress Admin in the WP GPX Settings page, selecting the file “bike_route_map.gpx” and uploading it.
———-
3) After to two steps above have been completed and assuming the file name references match for both steps, the GPX route data is presented in a map on certain listing pages.
Comment: This workflow requires two separate actions to support the publishing of the .gpx file-based route map/data on the certain listing pages. We desire a more streamlined workflow that does not require someone with WP-Admin access to manually upload the .gpx file into the WP GPX Map plugin.
Desired workflow (1 Step):
1) Create Listing – When adding a new listing that will include a .gpx map file, the user would upload the “bike_route_map.gpx” file via a Custom File Upload Field
———-
2) Upon Submitting the listing, the .gpx file is automatically saved or moved to the native .gpx file directory (/wp-content/uploads/gpx)
3) We will have to modify our custom code to to reference the name of the .gpx file that has been uploaded
Describing this in the abstract is a little challenging for me, so to help you get a better idea of what we’re talking about here, I will provide url and access credentials to the current dev site via a private message to follow. We apologize in advance for the messy appearance as we are in early stages of development. Additionally, we are primarily site builders with reasonable html and css skills, but are fairly “php-challenged”… 😉
Thanks again for your consideration in helping us out with this. We really love GeoDirectory and the great support that you folks offer.