Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author TC.K

    (@wp_dummy)

    What do you mean by ‘only in this taxonomies not in whole wordpress.’ ?
    If i understand you correctly, you want to search for taxonomy terms, right?
    If so, this isn’t the plugin for you. The plugin is made for search for posts.

    Thread Starter Adam Karski

    (@adam-karski)

    “in this taxonomies” I mean selected in plugin configuration. take a look link . I don’t need [KONTAKT] page or others. Is there any option to add hidden taxonomy , terms to search?

    Plugin Author TC.K

    (@wp_dummy)

    I still don’t get what you mean.

    Thread Starter Adam Karski

    (@adam-karski)

    I search in uwpqsf-process-class.php for variable [uwpqsftaxoall] responsible for [all text] query.

    if ($v[‘term’] == ‘uwpqsftaxoall’) {……..

    and changed $taxo[] Array to handle all terms from certain taxonomy.

    if ($v['term'] == 'uwpqsftaxoall') {
    
                                $terms = get_terms( $v['name'] );
                                $term_ids = wp_list_pluck( $terms, 'term_id' );
    
                                $taxo[] = $terms = array ('tax_query' => array(
                                    array(
                                        'taxonomy' => $v['name'],
                                        'field' => 'term_id',
                                        'terms' => $term_ids,
                                    )
                                )
                                );

    And it works. If all dropdowns have selected option ALL, plugin search only in selected in backend taxonomies and in all terms from that taxonomies.

    Now I’m trying to change behave of text string searching.

    Thread Starter Adam Karski

    (@adam-karski)

    disabling

    if ($options[0]['snf'] != '1' && !empty($keyword)) {
               $get_tax = $get_meta = null;
             }

    make searching by text string, more useful. Now it works only in taxonomies and all terms used by plugin.

    Thread Starter Adam Karski

    (@adam-karski)

    Thank you.

    Maybe there should be global option in plugin configuration, to enable whole site or only taxonomies search. Its simple to add.

    You have done a lot of work with this plugin , and thank you very much . Its CLEAR AND SIMPLE and clearly arranged in the configuration. I missed this single functionality , but – one more time – thank you for Your work.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Results only from selected taxonomies’ is closed to new replies.