Events Manager
[resolved] Locations list item format (6 posts)

  1. andrewkroening
    Posted 2 years ago #

    Hi is there a way to Show all events on 1 particular day grouped by location and have the location only display as a header


  2. caimin_nwl
    NetWebLogic Support
    Posted 2 years ago #

    Yes, you'd need to do something like this:

    [events_list scope="2013-12-25" location="3"]

    That would show events from Dec 25th 2013 at the location with the ID 3.

    You're basically combining shortcodes:

    with placeholders:

    to get the combination you want.

  3. andrewkroening
    Posted 2 years ago #

    This is the shortcodes I am using:
    [events_list scope="2013-08-01" Location="8"]
    <hr />
    [events_list scope="2013-08-01" Location="1"]
    <hr />
    [events_list scope="2013-08-01" Location="9"]
    <hr />
    [events_list scope="2013-08-01" Location="12"]

    Here is the link: http://www.wistatefair.com/wp/august-1/

    My problem is I would like the location to only display once i.e. "Saz’s Racing Pigs Arena". Thanks for the help.

  4. caimin_nwl
    NetWebLogic Support
    Posted 2 years ago #

    Sorry, I can't think of way of combing shortcodes and placeholders to do that.

  5. andrewkroening
    Posted 2 years ago #

    Thanks for your help, maybe someone else can way in.

  6. agelonwl
    Posted 2 years ago #

    maybe you can create new shortcode for this - http://codex.wordpress.org/Shortcode_API and then try something like

    $locations = EM_Locations::get($args);
    foreach ( $locations as $EM_Location ) {
    	echo "<H2>".$EM_Location->output('#_LOCATIONNAME')."</H2>";
    	echo do_shortcode('[events_list_grouped mode="monthly" location='.$EM_Location->location_id.' ]');

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Events Manager
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.