[Plugin: Polylang] wp_list_pages(): how to EXCLUDE different languages?
-
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); ?>
Thank you.
Ian
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘[Plugin: Polylang] wp_list_pages(): how to EXCLUDE different languages?’ is closed to new replies.