Support » Plugin: Glossary » Conflict with "Psychological tests & quizzes"

Viewing 14 replies - 1 through 14 (of 14 total)
  • any screen to understand the problem better?

    Enis

    (@enistrevisi)

    Hi, Daniele 🙂

    I’ve already solved this issue.

    It was caused by a conflict between polylang and the testing plugin.

    Thanks anyway for your help!

    I love that replies on support tickets 😀

    Enis

    (@enistrevisi)

    @daniele, I’m reopening this ticket, ’cause it seems that the problem lays on how your plugin retrieves its custom post types.

    View post on imgur.com

    See in this screenshots how the glossary terms page displays also two “wpt_test” CPTs.

    I thought I solved the issue with

    add_filter('pll_get_post_types', 'my_pll_get_post_types');
    function my_pll_get_post_types($types) {
    	unset ($types['wpt_test']);
    	return $types;
    }

    That removed that cpt from the cpts that polylang affects.

    Could you try to reproduce the error?

    I don’t understand the problem in the screen, maybe polylang with glossary don’t display the content of the post type? maybe there is no formatting?

    Enis

    (@enistrevisi)

    From my OP:

    When I activate this plugin: https://wordpress.org/plugins/wp-testing/ and create a test or a quiz, the test itself shows up in the glossary terms archive.

    You asked for a screenshot. There you have it: you see glossary terms along with psychological tests and quizzes.

    Can you explain better?

    create a test or a quiz, the test itself shows up in the glossary terms archive.

    There is the option in the panel to disable glossary in specific custom post types

    in the archive, the words “Glossary Terms” disappear from the breadcrumbs.

    Very strange but usually the breadcrumb are generated by a plugin or theme so we cannot doing something for it.

    you see glossary terms along with psychological tests and quizzes.

    So the problem is that with polylang and wp-testing enabled in the glossary terms archive are showed not only the terms (as usual) but also other post types?

    Enis

    (@enistrevisi)

    There is the option in the panel to disable glossary in specific custom post types

    I don’t want the glossary disabled on specific post types.
    In the glossary page—that is the page were all the glossary terms are displayed—instead of having only glossary terms, I also have tests.

    Lets say that i have 3 glossary terms:

    • my-strange-glossary-term
    • your-strange-glossary-term
    • their-strange-glossary-term

    and a test called: “Are you really smart?” when I go on http://mysite/glossary

    I get:

    • my-strange-glossary-term
    • Are you really smart
    • your-strange-glossary-term
    • their-strange-glossary-term

    So the problem is that with polylang and wp-testing enabled in the glossary terms archive are showed not only the terms (as usual) but also other post types?

    Yes

    Enis

    (@enistrevisi)

    Thank you so much!

    Following up there 🙂

    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

    Plugin Contributor iGenius

    (@igenius)

    This is totally insane! XD

    Something is altering the standard wordpress loop, our plugin’s archive is totally standard… do you have a Genesis child theme maybe? Did you tried to switch your theme with a twenty-something? This could be a theme issue maybe. Give it a try! 🙂

    Enis

    (@enistrevisi)

    I tried with twenty-sixteen. Same problem.

    I’m at loss.

    I hope the wp-testing developers weigh in, too.

    Enis

    (@enistrevisi)

    @daniele and @igenius, yes, it’s totally insane indeed: I’ve just discovered that the wp-testing plugin injects ‘wpt_test’ post_types in the main WP query virtually everywhere (besides few exceptions), thus breaking the archives of your glossary entries, the archives of every other glossary entries I’ve tried, the archives of
    any polugin with a basic implementation of CPTs
    and also the Genesis Framework builtin breadcrumbs.

    After a week or so on this matter, with the developer blame-shifting his way out of dealing with this issue, I finally discovered where the problem was.

    He ended up blaming WP and CPTs developers -_-

    Thanks for your support! 🙂

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Conflict with "Psychological tests & quizzes"’ is closed to new replies.