title: How to customize the search.php in wordpress so it can search the keyword in meta keys too?
body: <p>I am trying to customize the search.php in a way so it can also show the posts which has search keyword in meta key values. Please note: I am using Advance Custom Field Plugin which uses meta keys. </p>
  
  <p>For example I have a meta key called "<strong>treatments</strong>" and if user input "<strong>my treatment</strong>" in search bar and hit search button, I want to show the posts which has "my treatment" keyword its contents and/or the posts which has <strong>"my treatment"</strong> in its meta key called <strong>"treatments"</strong>. </p>
  
  <p>I want to work it with multiple meta keys at same time e.g. "address". I wrote following code but it just break the search. Can any one please tell me what I am doing wrong.</p>
  
  <pre><code>$args = array(
          'post_type'=&gt; 'beauty_salon',
          's' =&gt;$s,
          'meta_query' =&gt; array(
                 array(
                    'key' =&gt; 'treatments',
                    'value' =&gt; $s,
                    'compare' =&gt; 'LIKE',
                  ),
                  array(
                    'key' =&gt; 'address',
                    'value' =&gt; $s,
                    'compare' =&gt; 'LIKE',
                  ),
          ),
      );
      $query = new WP_Query( $args );
  
      // The Loop.......etc
  </code></pre>
  
  <p><strong>Please note: I need short custom code so please do not suggest a plugin. I know there are many to do the same.</strong> </p>