WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. andrewkroening
    Member
    Posted 1 year 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

    http://wordpress.org/extend/plugins/events-manager/

  2. caimin_nwl
    NetWebLogic Support
    Posted 1 year ago #

    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.

  3. andrewkroening
    Member
    Posted 1 year 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 1 year ago #

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

  5. andrewkroening
    Member
    Posted 1 year ago #

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

  6. agelonwl
    Member
    Posted 1 year 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

About this Topic

Tags

No tags yet.