• Enis

    (@enistrevisi)


    I’m experiencing a nasty problem with polylang, Psychological tests & quizzes (wp-testing henceforth, https://www.ads-software.com/plugins/wp-testing/ ), and Glossary ( https://www.ads-software.com/plugins/glossary-by-codeat/ )

    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

    https://www.ads-software.com/plugins/polylang/

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! ??

    Thread Starter Enis

    (@enistrevisi)

    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.