Plugin Author
Yann
(@ymichel)
Hi,
thanks for the suggestion and please apologize that I did not reply on GitHub. It seems that the notifications were not properly set up.-.
Currently, now can only add one location to each article as it would be complex to add and display multiple (and the right one at the right place).
If it would be O.K. with you, you could also have a special page that displays only particular posts (filtered per category) and display the locations here but also the articles.
if have such a customized page type for every journey on my website. Maybe it would make sense to add something like this for you?
BR,
Yann
Thanks for replying, now I am the one not getting notifications but thought I would check in on this anyway. Glad to have caught you.
I’m hoping to have some time to sit down with the code and help with the changes. However, my suggestion with a cursory glance is:
in the display_location_post function starting on line 414 in geolocation.php
$latitude = get_post_meta( $post->ID, ‘geo_latitude’, true );
$longitude = get_post_meta( $post->ID, ‘geo_longitude’, true );
TRUE could be changed to false.
Then just update_post_meta or add_post_meta with all the locations. A few loops to do each geo_latitude and geo_longitude and you should be good. The keys will always match up.
Again, I don’t expect you to do this for me if I’m the only one wanting it and I’ll have to look at the code myself at some point perhaps it’s more complicated than I was expecting.
None the less I appreciate your attention.
Plugin Author
Yann
(@ymichel)
Well, as you guessed it, it is not that simple as there would be multiple parts to be considered:
- admin menu – entering & removing optionally additional locations
- Reverse Geocoding on demand when storing
- Re-processing posts when desired (admin config)
- Displaying multiple locations for text and map
- Displaying the overall map for multiple locations per post
- Enabling map-algorithms for google and open streetmaps
In my past, when I had a similar desire to have for example more than one post per day (as there were multiple locations/attractions that day), I posted one per activity since they were all shown on a (ordered) page anyway.
In case that helps, I can also share my custom page type to give you a better understanding of what I am referring to.
BR,
Yann
-
This reply was modified 1 year, 10 months ago by
Yann.
Plugin Author
Yann
(@ymichel)
In cae you are still interested, please give me a sign. Until further notice, I will close the ticket.