WPML – Custom Post Types Displaying All Languages?

Add suppress_filters => 0 to your get_posts(); argument and everything will be just fine!!!

$args = array(

     'post_type' =>'slides', 
     'numberposts' => -1, 
     'orderby' => 'ASC', 
     'suppress_filters' => 0 // grab only the active language

);

 

Leave a Reply

katherine as a flat graphic icon

About Me

I’m an African / Ojibwe First Nations Web Developer living in Winnipeg, Manitoba.

Visit the Tips and Blog to see what I’m working on.