csumrell
Forum Replies Created
-
Thank you for this, fixed my issue
Forum: Plugins
In reply to: [Relevanssi - A Better Search] Dealing with Hypens (-)nvm, did a search in the meantime and this solved my problem
add_filter(‘relevanssi_remove_punctuation’, ‘hyphensoff’, 9);
function hyphensoff($str) {
return str_replace(‘-‘, ”, $str);
}Forum: Plugins
In reply to: [Ultimate WP Query Search Filter] Show All Results instead of paginationNevermind, i overlooked the option for this in the plugins settings menu
Forum: Plugins
In reply to: [Ultimate WP Query Search Filter] Multiple Sort by OptionsThank you for the help.
This is the code I ended up using to add two buttons: Sort By Newest and Sort By Oldest, that filter results by date to the search filter.
add_filter(‘uwpqsf_form_bottom’,’injecting_buttons’,”,4);
function injecting_buttons(){
echo ‘<label><input ‘.$desc.’ type=”radio” id=”taxhide” name=”date” value=”DESC”/>’.__(“Sort By Newest”,”UWPQSF”).'</label>’;
echo ‘<label><input ‘.$asc.’ type=”radio” id=”taxhide” name=”date” value=”ASC”/>’.__(“Sort By Oldest”,”UWPQSF”).'</label>
‘;
}add_filter(‘uwpqsf_query_args’,’injecting_custom_arg’,”,4);
function injecting_custom_arg($args, $id,$getdata){
$args[‘order’] = $getdata[‘date’];//likewise sort is the name of the order input.return $args;
}Forum: Plugins
In reply to: [Ultimate WP Query Search Filter] Multiple Sort by OptionsHow can I add the ASC and DSC order by date checkboxes to the Search Form on the page. I have the checkboxes there on the form, but how do I inject that input into the ajax search query?