Hi,
I made a big step in my research for displaying english translated informations without duplicate my posts.
Here is my code right now:
<?php //
$categorie = get_the_category();
foreach ($categorie as $country) :
echo $good_country = pll_get_term($country->term_id, pll_current_language()); ?>
<div>
<h4 ><?php echo pll_get_term($country->name, pll_current_language());?></h4>
</div>
<?php endforeach; ?>
The ID turns fine but I cannot display the name of my english category.
Is anybody could help me?
Thx a lot
First of all, my apologies Jan and Chouby, for having duplicated my posts like that. I was panicking, looping for 3 days on this ‘little’ detail. I hope you’ll forgive me.
And, thanks a lot Chouby, for this little boost that, surely, saves my life!
Now, I would be able to decide which information would switch from FR to EN and vice versa.
For the second point, I didn’t explain very well, sorry about that. I take an other chance:
Considering I am on a single page, displaying the post or custom post informations.
My custom posts are not translated (I unchecked into setting)
But my categories and tax are.
When I turn from FR to EN, I would like to stay to the same page having ONLY categories and tax translated. Does it make more sense that way?
So far, when I am on FR page, and click on EN, I go to the home page.
I will try to figure out with your documentation post.
Am I on the right way?..
In ultimate point, have you heard conflict with ‘posts-to-posts’ plugin? I’m having trouble to display categories fromm custom posts when I am on the list of standard posts.
Many thanks again for your help, patience and reading my so long posts
Mad.