Home › Forums › Calendar Products › Community Events › Getting location from venue info
- This topic has 3 replies, 2 voices, and was last updated 10 years, 8 months ago by
George.
-
AuthorPosts
-
July 25, 2015 at 9:29 am #990268
eastlife
ParticipantHi, I’ve created a form using the Community Events plugin which allows users to create events on the front end. The problem is that there is no box for location, so when the user creates an event they do not show up on my home page which is setup to show posts based on location (and has buttons for popular locations to filter by).
Instead the user adds information on the venue, but unfortunately this does not populate the event->location field.
The ideal solution would be to have a drop-down menu in the venue info section which would allow users to select a location and for this to also populate the event->location field so that the posts show up on the front page.
Failing that I could have a separate and required location field on the form for the user to select from available locations. This is the second best choice as having to get the user to add a location and venue location seems a bit redundant.
Any help for how I could achieve this would be much appreciated. My guess is that some hacking about with the edit-event.php template may work for the second option.
Thanks, this is a great plug in and has been very useful.
July 27, 2015 at 6:52 am #990469George
ParticipantHey @eastlife,
Thanks for reaching out here. If needed you can indeed add custom fields to the Community Submission form to collect custom data, but just to be 100% clear on things before we do that, can you clarify exactly what you mean when you refer to “the event->location field”?
Can you take a screenshot of this specific field in your admin? You can upload that screenshot to Imgur or Dropbox or something and post a link to that from here.
I just want to be certain I know what you’re talking about, since to my knowledge there’s only a “Location” section in the admin, which is itself the Venue information → https://cloudup.com/cT23aQOOeZf
This shows up fine on Community events forms, and the location data for any other venue is generated from the same set of Address information. For example, here’s a screenshot of Venue details in the Community submission form → https://cloudup.com/cXBsV18-n3y
It’s basically exactly the same as the earlier screenshot of the “Location” section in the admin, and collects the same exact data.
So there might be another thing going on here – the address information from a venue is certainly enough to place it on a map, as that’s how all our map functionality works, so that should also be enough for your location filtering to work.
Let us know what you think – and finally, can you share a link to your website itself so we can see what the location filtering is and looks like directly?
Thank you!
GeorgeAugust 3, 2015 at 5:13 am #992625eastlife
ParticipantHi, Having advanced things my end I know realise this was all based on a misunderstanding of how event location information is stored so I’d like to close this for now. I may post a new topic if I need help later on.
Thanks!
Ben
August 4, 2015 at 10:33 am #993179George
ParticipantThanks for the update Ben, and for being cool in regards to the behavior here. Open a new thread any time!
Cheers,
George -
AuthorPosts
- The topic ‘Getting location from venue info’ is closed to new replies.
