XILI language plugin – filter posts in slider

Viewing 1 post (of 1 total)
  • #15980
    jirimanek
    Participant

    Hi,
    I have an issue with XILI plugin – I’ve tried to add this plugin to my website http://www.jirimanek.cz.

    I have no problem to change the navigation to link the correct language content, however I’m not able to filter posts in slider. on XILI forums I’ve found that to filter the posts you need to add ‘lang’ => the_curlang() to the $args section where it is called for the view. So this looks like now:
    <?php
    global $wp_query, $query_string;
    $paged = get_query_var( ‘paged’ );
    $args = array(
    ‘posts_per_page’ => 4,
    ‘paged’ => $paged,
    ‘ignore_sticky_posts’ => 1,
    ‘lang’ => the_curlang()
    );
    $args = wp_parse_args( $args, $wp_query->query );
    ?>

    However it doesn’t filter. Is there any other place which is used to call the slider posts, where I need to change it?

    Many thanks,
    Jiri

    PS: WPML can do this?

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.