Events Ending Soon

This topic contains 8 replies, has 4 voices, and was last updated by  Kiran 5 years, 4 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #457701

    Carin Handsun
    Expired Member
    Post count: 178

    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?

    #457710

    Guust
    Moderator
    Post count: 29970

    Sorry, but that cannot be done without your own customization. Thanks

    #457749

    Carin Handsun
    Expired Member
    Post count: 178

    Can 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

    #457776

    Alex Rollin
    Moderator
    Post count: 27815

    Did 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.

    #457930

    Carin Handsun
    Expired Member
    Post count: 178

    Thank 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?

    #457950

    Guust
    Moderator
    Post count: 29970

    What 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

    #458004

    Carin Handsun
    Expired Member
    Post count: 178

    Hi 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!

    #458009

    Guust
    Moderator
    Post count: 29970

    With 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

    #458093

    Kiran
    Moderator
    Post count: 7069

    Hello

    [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

Viewing 9 posts - 1 through 9 (of 9 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket