Viewing 15 replies - 1 through 15 (of 37 total)
  • Plugin Contributor ustimenko

    (@ustimenko)

    The same problem seems to happen also with different glossary plugins.

    Seems to happen or happen? Pls use only facts.

    Plugin Contributor ustimenko

    (@ustimenko)

    @enis, pls provide some screenshots here (use some image uploadin services).

    Thread Starter Enis

    (@enistrevisi)

    Plugin Contributor ustimenko

    (@ustimenko)

    @enis, which theme do you use?

    Can you try on another theme?

    Thread Starter Enis

    (@enistrevisi)

    Genesis.

    Can you reproduce the error?

    Plugin Contributor ustimenko

    (@ustimenko)

    @enis, no, but as I see on standard theme there are another issues.

    I think better to contact Glossary authors. I suspect that other “custom post type” plugins also conflicts in same way.

    Thread Starter Enis

    (@enistrevisi)

    I went ahead and made a clean installation with just Glossary and Psychological tests & quizzes.

    It was working fine.

    Then I installed Polylang and that created the same problem: tests where listed in glossary terms archive.

    Any clue?

    Plugin Contributor ustimenko

    (@ustimenko)

    @enis, they all could be a source of an issue: this plugin, Glossary, Polylang. Or some of their combination.

    You can exclude just this plugin in this way: find some other plugin with so-called “Custom Post Types”, activate it and see if it’s custom post type will behaviour in same way as currnently wp-testing do.

    Thread Starter Enis

    (@enistrevisi)

    The only custom post types I can see registered in this “clean” installation are:

    • Tests
    • Glossary Terms

    Glossary creates its archive with:

    function get_glossary_terms_list( $order, $num, $tax = '' ) {
      if ( $order === 'asc' ) {
        $order = 'ASC';
      }
    
      $args = array( 'post_type' => 'glossary', 'order' => $order, 'orderby' => 'title', 'posts_per_page' => $num, 'update_post_meta_cache' => false, 'fields' => 'ids' );
    
      if ( !empty( $tax ) ) {
        $args[ 'tax_query' ] = array(
    	  array(
    		'taxonomy' => 'glossary-cat',
    		'terms' => $tax,
    		'field' => 'slug',
    	  ),
        );
      }
    
      $glossary = new WP_Query( $args );
      if ( $glossary->have_posts() ) {
        $out = '<dl class="glossary-terms-list">';
        while ( $glossary->have_posts() ) : $glossary->the_post();
    	$out .= '<dt><a href="' . get_glossary_term_url( get_the_ID() ) . '">' . get_the_title() . '</a></dt>';
        endwhile;
        $out .= '</dl>';
        wp_reset_query();
    
        return $out;
      }
    }

    I checked in the database and the tests are set with “wpt_test” custom post types, whereas the glossary terms are set as “glossary” posts.

    Thread Starter Enis

    (@enistrevisi)

    I found a solution.

    add_filter('pll_get_post_types', 'my_pll_get_post_types');
    function my_pll_get_post_types($types) {
    	unset ($types['wpt_test']); // you have to replace my-cpt by the name of your custom post type
    	return $types;
    }

    Perhaps it would be beneficial, if you looked into this matter and made your plugin compatible with polylang—and likely some other multilingual plugin—out of the box.

    Plugin Contributor ustimenko

    (@ustimenko)

    @enis, so you confirm that actual conflict was in polylang here?

    Thread Starter Enis

    (@enistrevisi)

    Yes, I do.

    Thread Starter Enis

    (@enistrevisi)

    So, apparently the hack I’ve introduced broke the plugin i18n.

    I ditched it and now this problem has reappeared.

    I encounter the very same issue with CM Tooltip Glossary: https://www.ads-software.com/plugins/enhanced-tooltipglossary/

    I opened a support ticket also with the glossary developers: https://www.ads-software.com/support/topic/conflict-with-psychological-tests-quizzes

    Perhaps you could weigh in there.

    Plugin Contributor ustimenko

    (@ustimenko)

    @enis, you should clearly determine when issue arises:

    * wp-testing + glossary + polylang
    * wp-testing + glossary
    * glossary + polylang
    * .. other?

    Thread Starter Enis

    (@enistrevisi)

    wp-testing + glossary + polylang
    and also
    wp-testing + CM Tooltip Glossary + polylang

    In all other combination everything works.

Viewing 15 replies - 1 through 15 (of 37 total)
  • The topic ‘Conflict with "Glossary"’ is closed to new replies.