Query custom pots type by language
-
$current_lang = pll_current_language(); $args = array ( 'post_type' => 'ensemble', 'order' => 'ASC', 'orderby' => 'menu_order', 'lang' => $current_lang, );
What is wrong with this?
I#m trying to get only the posts for the current language, I getting all.Best
P.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Query custom pots type by language’ is closed to new replies.