help with eo_get_the_start()

This topic contains 2 replies, has 2 voices, and was last updated by  Scott Schampers 5 years, 11 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #30370

    Love your plugin. I have developed a theme for a church and am using the function eo_get_the_start() in a template part which is reused throughout my theme. On the homepage it displays the date fine.

    Homepage Screenshot

    On the events page it gets configured like this:

    Events-page Screenshot

    But on the search page, using same template part, the eo_get_the_start() function doesn’t output any date information:

    Search-page Screenshot

    Is there anything different about the search query that causes it not to fire?

    Thanks, Scott

    • This topic was modified 5 years, 11 months ago by  Scott Schampers.
    Scott Schampers
    #30372

    Hi Scott,

    The events page is not associated with any one particular date, but instead the entire series. As such you can’t really rely on eo_get_the_start() for recurring events there.

    As for the search page, unless its for events only, it doesn’t pull out event dates (occurrences), but events. So again there is no date to reference.

    In both if these contexts you can use the schedule start and occurrences functions: http://codex.wp-event-organiser.com/function-eo_get_schedule_start.html and http://codex.wp-event-organiser.com/function-eo_get_the_occurrences_of.html

    Stephen Harris
    #30378

    Thanks so much. That worked.

    Scott Schampers
Viewing 3 posts - 1 through 3 (of 3 total)
To enable me to focus on Pro customers, only users who have a valid license for the Pro add-on may post new topics or replies in this forum. If you have a valid license, please log-in or register an account using the e-mail address you purchased the license with. If you don't you can purchase one here. Or there's always the WordPress repository forum.