• Resolved ladyjey

    (@ladyjey)


    Iv’e created a events.php so that I can have custom events list page.

    It was working fine, but I’ve updated the plugin and the page is not returning any event post_type.

    $loop = new WP_Query( array(
    ‘post_type’ => ‘event’ ,
    ‘posts_per_page’ => 5,
    ));

    if I put “post” instead of “event” it will list bunch of different articles, but “event” is not returning anything.

    however, I can go directly to each single events and the calendar is working fine too.

    please help.

    https://www.ads-software.com/extend/plugins/events-manager/

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

    (@ladyjey)

    nevermind. I don’t know why it stopped working. but I’ve updated the code with:
    $args[‘limit’] = “5”;
    $events = EM_Events::get( apply_filters(’em_content_events_args’, $args) );

    and it returns the events again.

    agelonwl

    (@angelonwl)

    thanks for updating.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘eventist not showing’ is closed to new replies.