How can I exclude posts of other languages with wp_list_pages(); ?
I query a custom post type “product”, which has the same properties of a page. I need to have tree with hierarchy.
adding ‘lang’ => ‘nl’, does not work.
This is the code I have now.
<?php $args = array( 'depth' => 0, 'show_date' => '', 'date_format' => get_option('date_format'), 'child_of' => 0, 'exclude' => '', 'include' => '', 'title_li' => '', 'echo' => 1, 'authors' => '', 'sort_column' => 'menu_order, post_title', 'link_before' => '', 'link_after' => '', 'walker' => '', 'post_type' => 'product', 'post_status' => 'publish' ); ?> <?php wp_list_pages($args); ?>
- The topic ‘[Plugin: Polylang] wp_list_pages(): how to EXCLUDE different languages?’ is closed to new replies.