• Hi everyone,
    I have been using polylang for a while and it works perfectly. My needs here is quite different from regular use. I would like to translate only Tag and Category from CustomPost. I did it.
    I would like NOT TO translate posts or custom post. (double post for one content). But, I am unable to make appear the two flags (FR EN).
    And I affected French and English Category or Tag to the same post. But doesn’t work.
    Is anybody has a begining of solution?
    Thamks for your help.
    Mad.

    http://wordpress.org/plugins/polylang/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter madeleod

    (@madeleod)

    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

    Thread Starter madeleod

    (@madeleod)

    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Only translating tag and categories’ is closed to new replies.