Events Manager
[resolved] Events_list_grouped in EM_Events::output (3 posts)

  1. einsiol
    Posted 3 years ago #

    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="https://twitter.com/share" 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


  2. agelonwl
    Posted 3 years ago #

    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.

  3. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 3 years ago #

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




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.