WordPress.org

Ready to get started?Download WordPress

Forums

Events Manager
Get the date of next upcoming event in other format (4 posts)

  1. Yasp0
    Member
    Posted 2 years ago #

    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.

  2. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 2 years ago #

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

  3. Yasp0
    Member
    Posted 2 years ago #

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

    That doesn't do anything.

    Could you give an example?

  4. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 2 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic