Neighbourhood events
This topic contains 13 replies, has 3 voices, and was last updated by Alex Rollin 6 years, 6 months ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support TicketTagged: code
-
AuthorPosts
-
May 15, 2018 at 5:50 am #430597
Hi there!
Could you help us with next question:
how is it possible to filter events relatively a particular event?
In GD we have the search functionality “Near Me” (when we search the events in some distance from user). Is it possible to do something similar for Events? E.g., we open the detail event page, and there are some neighborhood events have to be shown.
May 15, 2018 at 6:12 am #430605It’s possible to setup date search, to add “search by dates” as advance search filter in:
Geodirectory – Event settings – Advance searchMay 15, 2018 at 9:06 am #430626We need to show events filtered not by date but on distance (e.g., 40 miles).
And one more question: Is it possible to output these events on detailed event page?May 15, 2018 at 1:02 pm #430662The Events plugin comes with an event widget:
https://wpgeodirectory.com/docs/events-addon-widgets/You could also customize with the GD Listings shortcode, set to display events:
https://wpgeodirectory.com/docs/core-shortcodes/#listingsMay 17, 2018 at 11:18 am #430953Hi there!
Could you help us with one more question:
how to add the marker to the map on event detail page? Or maybe there is a way to output the map with markers using geodir_draw_map?
Thanks!
May 17, 2018 at 1:48 pm #430970Events work just like other CPT.
To change the map marker, visit the Events Categories and change the map icon.
Can you share a link to an event page? And tell us more about what you are trying to do there.
May 18, 2018 at 11:52 am #431137we need to output the neighborhood events.
we make the request to the DB and receive the events list with Address Latitude/Longitude parameters within 40 miles.
So, we need to output these lat/long on the map on the detailed event page – https://stepoutbuffalo.com/events/roycroft-campus-garden-tour/May 18, 2018 at 12:48 pm #431144When I read your topic, after rereading it a couple times, I will say that this is not a use case covered within GeoDirectory.
First of all, there can only be one GMap on a page at a time, generally speaking. A second GMap will conflict with the map in the detail page tab.
There may be a clever way to accomplish this on a WP Page, with shortcodes for GD Listings and GD Listing GMAP.
Doing this on a detail page will likely require a customization of the detail page template:
https://wpgeodirectory.com/docs/customizing-geodirectory-templates/
Have you managed to get a shortcode working that shows the listings you want?
May 21, 2018 at 5:35 am #431394We are using shortcode [gd_listing_map width=100% height=300 scrollwheel=false category=”16924″ post_type=gd_event]
On the post page http://dev.stepoutbuffalo.com/liten-buffel-is-putting-wny-on-the-map-for-natural-winemaking-good-vibes/ the shortcode works correctly – the events that included in this category output on the map.The same shortcode we are using on detailed event page http://dev.stepoutbuffalo.com/events/compeer-superhero-race-wellness-walk/#post_profile and there is only current event marker output on the map.
What’s the reason of this, what do you think? It seems like gd_listing_map shortcode works not correctly on the detailed event page exactly.
We had used your code that output the gd_listing_map shortcode as a basis.May 21, 2018 at 8:45 am #431407The detail page already has a map, and changing it will require customizing the template.
Using it on a non-GD page works as expected.
May 21, 2018 at 11:53 am #431438we hiden the map using this
function geodir_detail_page_tab_is_display_filter($value,$type){
if($type==’post_map’){return false;}
else{return $value;}
}We output the map using the shortcode [gd_listing_map width=100% height=300 scrollwheel=false category=”16924″ post_type=gd_event]
May 21, 2018 at 12:20 pm #431444Hello,
gd_listing_map shortcode only usable on non-GD pages. On detail page it will show current listing and on category/archive/search page it will show current listings from the page.
Currently it is not possible to show particular markers on the map on detail page.
FYI: We are working on GeoDirectory v2 and in v2 map functionality improved and the things you asking already implemented.
Kiran
May 23, 2018 at 12:17 pm #431782It’s great news 🙂
Could someone clarify when the second version will be available for use?May 23, 2018 at 12:19 pm #431783The beta is available for testing now:
https://wpgeodirectory.com/docs-v2/geodirectory/beta/ -
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket