Overview

Namespaces

  • EventPost
  • None

Classes

  • EventPost
  • EventPost_Cal
  • EventPost_List
  • EventPost_Map
  • EventPost_Search
  • EventPost_Shortcodes
  • EventPostChild
  • EventPostMU
  • EventPostWeather

Functions

  • event_post_format_color
  • event_post_get_all_terms
  • eventdetails_block_init
  • EventPost
  • eventpost_list_block_init
  • eventpost_timeline_block_init
  • eventscalendar_block_init
  • eventsmap_block_init
  • get_the_date_end
  • get_the_date_start
  • get_the_dates
  • get_the_location
  • the_date_end
  • the_date_start
  • the_dates
  • the_location
  • Overview
  • Namespace
  • Function

Function get_the_dates

Returns the HTML string of the given event's date range. If no post reference is given, the current post will be used

Package: event-post
Located at inc/wrappers.php
Parameters summary
mixte $_post = null $post
Return value summary
string

example:

<div class="event_date" data-start="april 6 2017 12am" data-end="april 6 2017 1pm">
<time itemprop="dtstart" datetime="2017-04-06T12:08:00+00:00">
<span class="date date-single">april 6 2017, 8am</span>
<span class="linking_word linking_word-from">from</span>
<span class="time time-start">12h am</span>
<span class="linking_word linking_word-to">to</span>
<span class="time time-end">1h am</span>
</time>
</div>
API documentation generated by ApiGen