WordPress.org

Ready to get started?Download WordPress

Forums

Events Manager
[resolved] Random event list (4 posts)

  1. synthesis0
    Member
    Posted 1 year ago #

    Hi guys,
    In the "today" scope I need to show up the event list in a random order, so that they are not ordered by time or name.

    I'm wondering if it's the case to modify the code shown here:

    and how,

    or hacking the plugin code to get a new ordering attribute like:

    [event_list order="RAND"]

    instead of ASC and DESC

    Thank you for your help.

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

  2. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 1 year ago #

    That wouldn't work. You'd probably have to use PHP to get this done, e.g.

    $events = EM_Events::get();
    shuffle($event);

  3. Renzo Bassi
    Member
    Posted 1 year ago #

    Hi, synthesis0
    have you solved?

    Hy Marcus,
    can I have an example? How and where to use this PHP code?
    Thanks.

  4. angelo
    NetWebLogic Support
    Posted 1 year ago #

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic