Support » Plugin: Events Manager » Events_list_grouped in EM_Events::output

  • Resolved einsiol


    I’m two codes to list items on my page. One is with the use of shorcode

    <?php echo do_shortcode('[events_list_grouped mode="daily" date_format="l" format_header="<ul>" format_footer="</ul>"]<li>#_24HSTARTTIME - #_EVENTLINK </li> [/events_list_grouped]'); ?>

    The other is with the use of EM_Events::output

    echo EM_Events::output( array('mode'=>'daily', 'date_format'=>'l', 'format_header'=>'', 'format_footer'=>'', 'format'=>'<article><a href="#_EVENTURL"><img src="#_EVENTIMAGEURL" /></a><h1 class="heading">#_EVENTNAME</h1><div class="social-feeds"><div class="fb-like" data-send="false" data-layout="button_count" data-width="90" data-show-faces="false" data-font="arial" data-href="#_EVENTURL"></div><div class="twit"><a href="" class="twitter-share-button" data-url="#_EVENTURL">Tweet</a></div>
    					   		</div></article>') );

    This both work fine, but what I want to be able to do with the second code is to split events into groups by day, like the code above provides me. Is that possible? I have been working on this for days and can’t find out how to do this.

    The code can bee seen working here

Viewing 2 replies - 1 through 2 (of 2 total)
  • this might be possible; please see php file at wp-content/plugins/events-manager/em-template-tags.php at around line 81 (function em_get_events_list_grouped) on how to do it.

    Plugin Author Marcus


    NetWebLogic Support

    you could probably do exactly what you did in that snippet you posted replacing




Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Events_list_grouped in EM_Events::output’ is closed to new replies.