Group by…

This topic contains 1 reply, has 2 voices, and was last updated by  Stephen Harris 10 years ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #10613 Reply

    Very cool plugin — not sure how I missed it all these years, but glad to have found it.

    Simple question for you: Can I “group by” a venue, category and / or tag using a shortcode… or some other approach?

    Venue Name
    Meeting Date 1
    Meeting Date 2
    etc,

    I’ve got it partially going, but the venue name is hard-coded:

    VENUE NAME
    [eo_events event_venue=”Venue Name”] %event_title%, from %start{jS M Y}{ g:i:a}% to %end{g:i:a}% at %event_venue%[/eo_events]

    Thanks in advance!
    — Matt D.

    Matt
    #10634 Reply

    Hi Matt,

    There’s no widget/shortcode which will automatically create a list of events grouped by venue. However, its something that’s entirely possible with the API:

    • eo_get_venues() to retrieve the venues
    • Loop through each venue, and foreach get the next X events (via eo_get_events() or a WP_Query()
    • Display venue details, and loop through each event and display the event.

    Details of the above functions can be found here: codex.wp-event-organiser.com.

    Stephen Harris
Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Group by…
Your information:




To create code blocks or other preformatted text, indent by four spaces:

    This will be displayed in a monospaced font. The first four 
    spaces will be stripped off, but all other whitespace
    will be preserved.
    
    Markdown is turned off in code blocks:
     [This is not a link](http://example.com)

To create not a block, but an inline code span, use backticks:

Here is some inline `code`.

For more help see http://daringfireball.net/projects/markdown/syntax


<a href="" title="" rel=""> <blockquote cite=""> <code> <pre> <em> <strong> <del datetime=""> <ul> <ol start=""> <li> <img src="" border="" alt="" height="" width=""> <p style=""> <span style="">