Support » Plugin: Polylang » Polylang mixes up custom post types

  • Enis


    I’m experiencing a nasty problem with polylang, Psychological tests & quizzes (wp-testing henceforth, ), and Glossary ( )

    When I create a psychological test in any language, it shows up in the glossary page as it was a glossary term.

    A link to my site can’t be provided, ’cause it’s not public yet.

    When I disable the language and translation management for any of the two custom post types (‘glossary’ and ‘wpt_test’), the problem doesn’t occur.

    I tried a minimal deploy, with just the default theme and the latest versions of wp and each plugins and an empty database, and the problem was present.

    My permalinks settings: /%postname%/
    I’m NOT using a static front page.
    My Polylang settings:

    • The language is set from the directory name in pretty permalinks
    • Hide URL language information for default language
    • Remove /language/ in pretty permalinks
    • Custom post types and taxonomies the languages and translations management is activated for
      • Tests
      • Glossary Terms
      • Terms Categories
      • Test Categories
    • Synchronization:
      • Taxonomies
      • Custom fields
      • Comment status
      • Ping status
      • Sticky posts
      • Published date
      • Post format
      • Page parent
      • Page template
      • Page order

Viewing 2 replies - 1 through 2 (of 2 total)
  • I’m following this thread as Glossary Plugin’s author. I tryed to debug on my side but it’doesn’t seems to be our fault so I’m curious about this now! 🙂



    I temporarily solved it in this ugly and inelegant way:

    function my_exclude_category( $query ) {
        if ( is_post_type_archive('glossary')) {
            set_query_var( 'post_type', array('glossary') );
    add_action( 'pre_get_posts', 'my_exclude_category' );

    I hope it helps

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Polylang mixes up custom post types’ is closed to new replies.