WordPress.org

Ready to get started?Download WordPress

Forums

Polylang
Translate for pages only - not for posts? (6 posts)

  1. Inguss Neilands
    Member
    Posted 2 years ago #

    I have blog with translated static pages and language bar that allows to switch them - cool & TY.

    But i write blog posts in multiple languages and i need an option to display all blog posts not just translated ones!

    Maybe its and easy tweak - can you add it?

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

  2. Chouby
    Member
    Plugin Author

    Posted 2 years ago #

    It's possible. Please read the documentation.

  3. Inguss Neilands
    Member
    Posted 2 years ago #

    define('PLL_DISPLAY_ALL', true) is not what i ment!

    enable for ALL - but disable for POSTS ?!?

  4. Inguss Neilands
    Member
    Posted 2 years ago #

    There is page_for_posts in wp_options - how to disable polylang for that page ?

  5. Chouby
    Member
    Plugin Author

    Posted 2 years ago #

    To be honest, I created the PLL_DISPLAY_ALL option in v0.5 per user request. This option is "hidden" because I believed that it would be useful for only a very small minority of users and also because I was not very confident that what is obtained is what was requested.

    I did not get any feedback on it so did not spend time testing this option since I released it. Due to your request, I just came back on it and saw that it is obviously buggy. Since nobody reported it, I take that as a proof that the option is not used. I will probably undocument it, maybe remove it.

    So I agree that the option will not be your solution. And unfortunately, I have no easy solution to propose. Sorry.

  6. Inguss Neilands
    Member
    Posted 2 years ago #

    Maybe it is possible to define Conditional_Tags where translations can be enabled - is_page, is_category ...
    From: http://codex.wordpress.org/Conditional_Tags

    By default enable them everywhere. Then it is more comfortable!

    Using checkboxes in plugin configuration under settings can be option.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags