Events Ending Soon
This topic contains 8 replies, has 4 voices, and was last updated by Kiran 6 years, 4 months ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support TicketTagged: Events ending soon
-
AuthorPosts
-
December 8, 2018 at 8:50 pm #457701
I tried to build a shortcode for Events ending soon, but did not see the option for that, can we do that, set a time period of 5 days or something like that?
December 9, 2018 at 12:46 am #457710Sorry, but that cannot be done without your own customization. Thanks
December 9, 2018 at 2:07 pm #457749Can you tell me how Coming Events decides to sort, in my list it is not chronological, we are going to be creating an Expiring Soon page, any hints on parameters we can use? We built this query ?geodir_search=1&stype=gd_event&etype=upcoming and Events are not auto sorted in any chronological order, https://www.screencast.com/t/RQHVrh2al
December 10, 2018 at 12:27 am #457776Did you already try the sorting options?
https://wpgeodirectory.com/docs-v2/places/sorting/
Sorting is for listing shortcodes and archive pages, though, not search.
Search results are always sorted by relevance.
December 10, 2018 at 7:10 pm #457930Thank you, I discovered that sorting by ascending in CPT let me make an Upcoming Events page where the Events ending Soon are shown at the top-its just what we need!! Now I am trying to recreate that in a shortcode to add a few Events that are Ending Soon to the Home Page.
For my shortcode gd_listings, I have Events: Upcoming, sort by Latest (it is forcing me to choose a Sort by, and I want it sorted by Date ascending, as I have selected in Sorting in CPT Settings), but it is not creating the ascending order that my Upcoming Events Page has. Is there another way to add gd_listings to a Page besides the shortcodes?
December 10, 2018 at 10:29 pm #457950What happens if you delete the
sort_by="latest"
and set the default sort in the Event settings to ascending as the default sort?
In my test, that sort indeed does not work, and even deleting the
sort_by="latest"
does not solve it.
I’ll get the developer to check your question too:
1. should default sorts work on non-GD pages?
2. should there be additional sort options in the shortcode?Thanks
December 11, 2018 at 11:15 am #458004Hi Guust, Ending Soon is an import option for most peoples events, and I was so glad to see that I could accomplish it on my Upcoming Events page by choosing ascending in Events default Sort tab for Event Date. In the shortcode it is not clear if Latest is latest post or latest event date, as both these options are available in the Sorting tab if they are enabled.
When you say non GD pages are you referring to the Template pages we choose in CPT settings or to the Template Page settings in each Page? I always like more flexibility so if shortcodes can work in any page its better for us.
HArd to say if there should be more until we work more with our sites customizations, but Ending Soon (sort by Event Date, ascending, is an important one.
Thanks for your ongoing and just frankly unsurpassed support!
December 11, 2018 at 12:42 pm #458009With non-GD pages I mean normal WordPress pages that are not GD templates that are used to create GD pages like Listings, Location, Detail etc pages.
“Latest” refers to listing added “latest” or “newest”.
Just copying this for the developers again [they are a bit busy with updates for the moment]:
1. should default sorts work on non-GD pages?
2. should there be additional sort options in the shortcode?Thanks
December 12, 2018 at 5:29 am #458093Hello
[gd_event_listing] shortcode/widget no longer supported in v2, it is merged with [gd_listings] shortcode/widget.
Use following shortcode to list upcoming events.
[gd_listings post_type="gd_event" event_type="upcoming" sory_by="event_dates_asc" layout="gridview_onefifth" post_limit=5 title="Featured Events"]
The issue of event sorting options missing in widget option is fixed. It will be in next release. Here is patch if you want to update: https://github.com/AyeCode/geodirectory/pull/529/commits/3089186e92c2f1ca4d40a8b7ad075d022f9cc7c0
Kiran
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket