• Resolved maitresinh

    (@maitresinh)


    hello

    i’d want to insert the plugin into the search page result, so i would need the code to to that.

    Help please ?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author scribu

    (@scribu)

    You can use the_widget(), like so:

    the_widget('Taxonomy_Drill_Down_Widget', array(
    	'title' => '',
    	'mode' => 'dropdowns',
    	'taxonomies' => array( 'post_tag', 'color' ) // list of taxonomy names
    ));

    ‘mode’ can be one of ‘lists’ or ‘dropdowns’

    Thread Starter maitresinh

    (@maitresinh)

    thanks.

    Sorry but as i’m a complete sucker in coding, i get the code as “text”. where and how do i have to insert it (yes, i’m sorry..)

    here is the code in the search.php
    ———
    <?php if (have_posts()) : ?>
    <div class=”search-results”>
    <h2><?php _e(‘Resultats’, ‘arras’) ?></h2>
    <div class=”search-results-content clearfix”>
    <p><?php printf( __(‘Resultats pour ‘’ . ‘%s’ . ‘’</p>’, ‘arras’), wp_specialchars($s, 1) ) ?>
    <?php get_search_form(); ?>

    the_widget(‘Taxonomy_Drill_Down_Widget’, array(
    ‘title’ => ”,
    ‘mode’ => ‘dropdowns’,
    ‘taxonomies’ => array( ‘post_tag’, ‘color’ ) // list of taxonomy names
    ));

    </div>
    </div>
    ————–

    the other problem is that it seems that the page resultat for QMT is NOT the search.php page. how can i insert the code in THIS page ?

    Thread Starter maitresinh

    (@maitresinh)

    oups , sorry, i put <?php …
    and it’s ok.

    but i still wonder where is the page for the QMT results ?

    Plugin Author scribu

    (@scribu)

    You have to edit taxonomy.php (or create it if it’s not there).

    Thread Starter maitresinh

    (@maitresinh)

    thank you.

    i just duplicate the search.php of my theme folder and change the name into taxonomy.

    it seems to work so fa (no ?)

    the only problem is that i don’t know how to change search result for xxxxxxxx and include the terms of query.

    Sorry, again.

    Plugin Author scribu

    (@scribu)

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Plugin: Query Multiple Taxonomies] code for inserting form wiithout using widget’ is closed to new replies.