• Hi, I can’t figure how to use the new drill widget to create searches like the one you put as an example :
    ?ingredients=flour+sugar&flavour=sweet

    The way i can see the widget works, it creates
    ?ingredients=flour+sugar
    OR
    ?flavour=sweet

    that is to say, if i first click on “flour”, it does :
    ?ingredients=flour

    then if i click on the (+) next to sugar, it does :
    ?ingredients=flour+sugar

    but then if i click on the (+) next to sweet (ie in another taxonomy), i have :
    ?flavour=sweet

    I can’t figure out how to query multiple taxonomies with it. Multiple terms inside the same taxonomy is ok.
    thank you

Viewing 11 replies - 1 through 11 (of 11 total)
  • Are you sure you created two instances of the drill-down widget?

    Do you have an URL I can see?

    Thread Starter incipitblog

    (@incipitblog)

    Thank you for your quick answer,
    i had removed the widgets but put them online again so that you can check : https://www.794point8.com/blog/ at the very bottom

    try for example:
    taxonomy gameplay=score
    then gameplay=score + jeu-a-1-bouton

    then if you click on a (+) inside the other taxonomy (Genre), the url does contain your new choice for Genre, but the two previous terms from the gameplay taxonomy are gone.

    I need to see how your taxonomies are set up. Add this block of code at the end of query-multiple-taxonomies.php:

    function debug_taxonomies() {
    	debug_raw($GLOBALS['wp_taxonomies']);
    }
    add_action('admin_footer', 'debug_taxonomies');

    In the admin, you should see some code in the footer. Please paste it here.

    Thread Starter incipitblog

    (@incipitblog)

    Array
    (
        [category] => stdClass Object
            (
                [hierarchical] => 1
                [update_count_callback] => _update_post_term_count
                [rewrite] =>
                [query_var] =>
                [label] => Catégories
                [name] => category
                [object_type] => post
            )
    
        [post_tag] => stdClass Object
            (
                [hierarchical] =>
                [update_count_callback] => _update_post_term_count
                [rewrite] =>
                [query_var] =>
                [label] => Mots-clefs
                [name] => post_tag
                [object_type] => post
            )
    
        [link_category] => stdClass Object
            (
                [hierarchical] =>
                [update_count_callback] =>
                [rewrite] =>
                [query_var] =>
                [label] => Catégories
                [name] => link_category
                [object_type] => link
            )
    
        [xili_tidy_tags] => stdClass Object
            (
                [hierarchical] => 1
                [update_count_callback] =>
                [rewrite] => 1
                [query_var] => 1
                [name] => xili_tidy_tags
                [object_type] => term
            )
    
        [annee] => stdClass Object
            (
                [hierarchical] =>
                [update_count_callback] =>
                [rewrite] => Array
                    (
                        [slug] => annee
                    )
    
                [query_var] => annee
                [label] => Année
                [name] => annee
                [object_type] => post
            )
    
        [langue] => stdClass Object
            (
                [hierarchical] =>
                [update_count_callback] =>
                [rewrite] => Array
                    (
                        [slug] => langue
                    )
    
                [query_var] => langue
                [label] => Langue(s)
                [name] => langue
                [object_type] => post
            )
    
        [genre] => stdClass Object
            (
                [hierarchical] =>
                [update_count_callback] =>
                [rewrite] => Array
                    (
                        [slug] => genre
                    )
    
                [query_var] => genre
                [label] => Genre
                [name] => genre
                [object_type] => post
            )
    
        [auteur] => stdClass Object
            (
                [hierarchical] =>
                [update_count_callback] =>
                [rewrite] => Array
                    (
                        [slug] => auteur
                    )
    
                [query_var] => auteur
                [label] => Auteur
                [name] => auteur
                [object_type] => post
            )
    
        [gameplay] => stdClass Object
            (
                [hierarchical] =>
                [update_count_callback] =>
                [rewrite] => Array
                    (
                        [slug] => gameplay
                    )
    
                [query_var] => gameplay
                [label] => Gameplay
                [name] => gameplay
                [object_type] => post
            )
    
    )

    Hm… that doesn’t seem to be the problem.

    Try disabling all other plugins.

    Thread Starter incipitblog

    (@incipitblog)

    Still the same problem with all other plugins disabled.

    (“all other” except “GD Taxonomies Tools” plugin, of course, as disabling it also disables my custom taxonomies)

    Thread Starter incipitblog

    (@incipitblog)

    Please note that if i enter the url with the keyboard, it works.

    For example if i type “https://www.794point8.com/blog/?gameplay=score+jeu-a-1-bouton&genre=plates-formes”, the filters work and the taxonomies widgets display (-) in front of all three activated terms.

    -> what does not work seems to be the widgets (as far as i can figure it out, i’m no coder)

    I hope you’ll be able to fix it, your plugin is very interesting and i would love to use it for facetted search.

    Well, I’ve tested it in WP 2.9.2 and the widget works.

    Last thing you can try is disabling GD Taxonomies Tools and adding the taxonomies manually:

    function debug_taxonomies() {
    	register_taxonomy('gameplay', 'post');
    	register_taxonomy('genre', 'post');
    }
    add_action('init', 'add_taxonomies');
    Thread Starter incipitblog

    (@incipitblog)

    It won’t create any problem with GDTT when i enable it again ?
    when you tested it with 2.9.2, did you also install GDTT?

    I’ve successfully tested it with GDTT (creating the taxonomies manually or through the plugin’s screen).

    Really don’t know why it’s not working for you.

    Thread Starter incipitblog

    (@incipitblog)

    too bad
    thank you anyway for your time
    i guess i’ll use “xili tidy tags” plugin and tags instead of taxonomies
    and “sk multi tag” for a cloud that can add or remove several tags in the url

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘[Plugin: Query Multiple Taxonomies] drill widget and multiple taxonomies query ?’ is closed to new replies.