I used different kind of codes.
The kind i posted above didn’t work, also not with you addition.
To get only intro-articles from category 4 (dutch homepage-articles) on the homepage i use this code now:
<?php if ( is_front_page() ) {
$cat = pll_get_term($cat);
query_posts('&cat=4');
} // end if ?>
That works for the dutch part. But when i click on german it shows the same articles, articles from category 4, then it should show articles from cat 34.
There wasn’t any code in the template for showing specific articles on the frontpage. Thats why i added the code in the first place.
I tried a lot od snippets i found using search, but none worked, some showed me all latest posts in German. But i want only to show from a specific category.
is there a setting or specific way i have to use for the ‘homepage’ in the menu? Hoe does Wordress now its the homepage in another language?
I use a link to the root of the site as the ‘homepage’….
So i would think i needed somethink like
<?php if ( is_front_page() && code for language == nl_NL ){
$cat = pll_get_term($cat);
query_posts('&cat=4');
} // end if ?>
and the same snippet for german with de_DE and cat=34