Mani Khan
Forum Replies Created
-
Hello,
yes, @dudo it is just disappearing when someone tries to make a vote.please check your plugin with WordPress latest version ??
i just updated your plugin (from 1.4.7 to 1.5.3) and then updated WordPress.
it is not working anywhere, neither on my client’s website nor my localhost.
i deactivated all the plugins and switched my theme to TwentySeventeen BUT still no luck ??
it was working when i was using your older version (1.4.7).Thanks a lot man.
i will open a new thread, in this way people can search any query easily ??Thankssssssss a lottttttt ??
It is working now ??I am facing some more problems. Can i ask here or i should open a new thread?
Forum: Plugins
In reply to: [Ultimate WP Query Search Filter] Hierarchical list of CheckboxesNO, there is no js error in the console.
this was not working before this customization.
Actually! before this customization, it was showing just double entries (checkboxes) of every category and it is OK now but does nothing after click on SEARCH BUTTON.
This is a VERY GOOD FEATURE and i request you to add this feature in the next version ??Forum: Plugins
In reply to: [Ultimate WP Query Search Filter] Hierarchical list of CheckboxesThanx a lot. Yeah! you are right. now this is OK. It is showing all the checkboxes in hierarchy and not doubling html now BUT
when i click on SEARCH BUTTON, it does nothing ??
no searching, no action.Forum: Plugins
In reply to: [Ultimate WP Query Search Filter] Hierarchical list of CheckboxesActually! this code was for radios option and i customize it for checkboxes but it is showing now double entries of all the categories and when i click on search button, it doesn’t do anything ??
Forum: Plugins
In reply to: [Ultimate WP Query Search Filter] Hierarchical list of Checkboxesi put this code in the functions.php file but i am sure that this code is wrong.
add_filter('uwpqsf_tax_field_checkbox','custom_checkbox_output','',12); function custom_checkbox_output($html,$type,$exc,$hide,$taxname,$taxlabel,$taxall,$opt,$c,$defaultclass,$formid,$divclass){ $eid = explode(",", $exc);//this is where you forgot to add,this will throw warning when debug mode is on $args = array('hide_empty'=>$hide,'exclude'=>$eid, 'hierarchical' => true, 'parent' => 0 );//add new parameter to the parent argument. $taxoargs = apply_filters('uwpqsf_taxonomy_arg',$args,$taxname,$formid); $terms = get_terms($taxname,$taxoargs); $count = count($terms); if($type == 'checkbox'){ if(!empty($taxall)){ $checkall = (isset($_GET['taxo'][$c]['call']) && $_GET['taxo'][$c]['call'] == '1' ) ? 'checked="checked"' : ''; $html .= '<label><input type="checkbox" id="tchkb-'.$c.'" name="taxo['.$c.'][call]" class="chktaxoall" value="1" '.$checkall.'>'.$taxall.'</label>'; } if ( $count > 0 ){ foreach ( $terms as $term ) { $selected = $terms[0]->term_id; $html .= '<label><input type="checkbox" id="tchkb-'.$c.'" name="taxo['.$c.'][term]" value="'.$term->slug.'">'.$term->name.'</label>'; $args = array( 'hide_empty' => false, 'hierarchical' => true, 'parent' => $term->term_id ); $childterms = get_terms($taxname, $args); foreach ( $childterms as $childterm ) { $selected = $childterms[0]->term_id; $html .= "<label class='child'><input type='checkbox' id='tchkb-".$c."' name='taxo[".$c."][term]' value='".$childterm->slug."'".">" . $childterm->name . '</label>'; }} } $html .= '</div>'; return $html; } }