WordPress.org

Support

Support » Plugins and Hacks » Events Manager » [Plugin: Events Manager] Get the date of next upcoming event in other format

[Plugin: Events Manager] Get the date of next upcoming event in other format

  • I want to get the date of the next upcoming event with a shortcode, for now I used:

    <?php em_events('limit=1')?>

    But it shows up in the default format taken from the settings page. Which is like:

    Date       | Event
    -------------------------
    05-08-2011 | Event name 1

    Which I created with a table.

    All I want is just the date, not the other info like the titles I gave in the settings page. I think I have to do something with the ‘format’ attribute…but can’t figure out how.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Marcus

    @netweblogic

    NetWebLogic Support

    use the objects, e.g. EM_Events::get()

    How to use it? Like <?php EM_Events::get()?>?

    That doesn’t do anything.

    Could you give an example?

    Plugin Author Marcus

    @netweblogic

    NetWebLogic Support

    EM_Events::get( array(‘limit’=>1) );

    for example this gives you an array of EM_Event objects (limted to one),you need to thendo something to the array.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Events Manager] Get the date of next upcoming event in other format’ is closed to new replies.
Skip to toolbar