• I had to remove the English language from 10 posts, and tried searching the database for that information but I couldn’t find anything. When you first install Polylang, posts have no language set, but once you set a language, Polylang won’t allow you to unset it. The only solution I found was to delete the language. But to avoid that in the future, how can I remove a language from a post without deleting it?

    PS: disabling translation for the post type is ineffective, since Polylang keeps retrieving the language information no matter what. But from where it’s getting that information is all I need to know.

    • This topic was modified 4 years, 2 months ago by pierremg.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter pierremg

    (@pierremg)

    Deleting the language has caused me a lot of trouble, and I’m still fixing them. That’s why I need a better solution for the future.

    • This reply was modified 4 years, 2 months ago by pierremg.
    • This reply was modified 4 years, 2 months ago by pierremg.
    • This reply was modified 4 years, 2 months ago by pierremg.
    • This reply was modified 4 years, 2 months ago by pierremg.
    Plugin Author Chouby

    (@chouby)

    Hello,

    The language is stored as a taxonomy ‘language’ for posts, ‘term_language’ for terms.

    You don’t need to delete the language to change the language of a post. You can change the language of a post at any time and there are 3 ways:
    1. Using the languages metabox when editing the post.
    2. Using quick edit.
    3. Ussing bulk edit.

    Thread Starter pierremg

    (@pierremg)

    Hi. Thanks for your answer, but I don’t want to change the language, I want some posts to have no languages at all. Changing languages is easy, but removing them seems impossible unless you delete it.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Where does Polylang store the language code for each post?’ is closed to new replies.