Forked from John Clarke's Pen Instagram Header.
A Pen by Jonathan Clarke on CodePen.
Forked from John Clarke's Pen Instagram Header.
A Pen by Jonathan Clarke on CodePen.
| function custom_search_query( $query ) { | |
| $custom_fields = array( | |
| // put all the meta fields you want to search for here | |
| "_post_title", | |
| "text_english", | |
| "text_deutsch" | |
| ); | |
| $searchterm = $query->query_vars['s']; | |
| // we have to remove the "s" parameter from the query, because it will prevent the posts from being found | |
| $query->query_vars['s'] = ""; |
| <?php | |
| /** | |
| * Enqueue scripts and stylesheets | |
| */ | |
| function enqueue_less_styles($tag, $handle) { | |
| global $wp_styles; | |
| $match_pattern = '/\.less$/U'; | |
| if ( preg_match( $match_pattern, $wp_styles->registered[$handle]->src ) ) { | |
| $handle = $wp_styles->registered[$handle]->handle; |