Getting right language for listing child posts
-
Hi,
First off – great plugin! Keep up the good work!
I want to list a submenu for certain categories where I display the child posts of the parent category. My code looks like this at the moment:
<?php $this_cat = (get_query_var('cat')) ? get_query_var('cat') : 1; ?> <?php $this_category = get_category($this_cat); if ( $this_category->parent ) { $this_cat = $this_category->parent; } ?> <?php wp_list_categories('orderby=ID&order=DESC&show_option_none=&title_li=&hide_empty=0&child_of=' . $this_cat . ''); ?>
This only displays the titles in the default language. How do I show titles in the language selected by the visitor?
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Getting right language for listing child posts’ is closed to new replies.