Skip to content

Instantly share code, notes, and snippets.

@Firsh
Created August 9, 2016 19:34
Show Gist options
  • Save Firsh/dd8485288d2d988f63c85b7798a93aa4 to your computer and use it in GitHub Desktop.
Save Firsh/dd8485288d2d988f63c85b7798a93aa4 to your computer and use it in GitHub Desktop.
For meravjon
<?php
if (is_search()) {
if (array_key_exists('s', $wp->query_vars) && !empty($wp->query_vars['s'])) {
$the_search_query = $wp->query_vars['s'];
get_jig(array(
'preset' => '19',
'row_height' => '250',
'orderby' => 'title_asc',
'ng_intersect_tags' => 'yes',
'ng_search_options' => 'tag',
'ng_search_query' => $the_search_query
));
}
echo '<style type="text/css">.jigErrorMessage{display:none;};</style>';
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment