• Resolved hridaya

    (@hridaya)


    hello,

    How can i list the event by date . like event on 2013-05-08

    $args = array(
    ‘numberposts’ =>1,
    ‘orderby’ => ‘eventstart’,
    ‘post_status’ => ‘publish’,
    ‘post-type’=>’event’
    ‘ondate’=>’2013-05-08’
    );

    $events=get_posts($args);

    but not working good showing same event in the loop

    Actually i want to link the event widget date link to the event on that date directly rather than go to the event archive page .

    Thank you
    hridaya
    http://in2bazar.com

    http://wordpress.org/extend/plugins/event-organiser/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter hridaya

    (@hridaya)

    Solved it . I have fixed it by following code

    $args = array(
    ‘numberposts’ =>1,
    ‘orderby’ => ‘eventstart’,
    ‘post-type’=>’event’,
    ‘suppress_filters’=>false,
    ‘post_status’ => ‘publish’,
    ‘ondate’=>’2013-05-08’
    );
    $events=get_posts($args);

    with best regards
    Hridaya
    http://www.in2bazar.com

    Plugin Author Stephen Harris

    (@stephenharris)

    That will work, but its recommended to use eo_get_events() instead (docs)

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘List Event By Particular date’ is closed to new replies.