Viewing 5 replies - 1 through 5 (of 5 total)
  • caimin_nwl

    (@caimin_nwl)

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

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

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

    You’re basically combining shortcodes:
    http://wp-events-plugin.com/documentation/shortcodes/

    with placeholders:
    http://wp-events-plugin.com/documentation/placeholders/

    to get the combination you want.

    Thread Starter andrewkroening

    (@andrewkroening)

    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.

    caimin_nwl

    (@caimin_nwl)

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

    Thread Starter andrewkroening

    (@andrewkroening)

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

    agelonwl

    (@angelonwl)

    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.' ]');
    }
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Locations list item format’ is closed to new replies.