Forum Replies Created

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

    (@wordsar2793)

    In fact it works in general, but in my specific case I also have the WPML translation plugin on my site. In this case I have both the events in the original language and those translated into the secondary language.Translated events are simply duplicates.

    When the language is changed it shows the posts with the relevant language. It works well with all types of posts with WP_Query while with EM_Events::get it only shows me the events in the secondary language, in the main language no events come out.

    What could I have done wrong? The arguments are the same

    Thread Starter wordsar2793

    (@wordsar2793)

    Thanks, this query works.
    While the use you suggested with EM_Events::get still doesn’t work for me.
    The $args I passed previously are as follows:

    $args = array(
        'post_type' => 'event',
        'post_status' => 'publish',
        'suppress_filters' => true,
        'tag' => $tag->slug,
        'posts_per_page' => -1,
        'order' => 'ASC',
        'orderby' => 'event_start_date,event_end_date',
        'scope' => 'future',
    );

    These $args with older versions of the plugin worked.

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