title: Trouble with apostrophes in Wordpress meta_query
body: <p>I've seen this issue around but I can't seem to find the solution that works for me. I am trying to filter posts based on the article_tag and all of them work except for the one with an apostrophe in it. </p>
  
  <p>Here is my code for the select: </p>
  
  <pre><code>&lt;select name='tagFilter'&gt;
      &lt;option value="Lead" &lt;?php echo display_selected($tag, "Lead Story");?&gt;&gt;Lead Story&lt;/option&gt;
      &lt;option value="Executive Corner" &lt;?php echo display_selected($tag, "Executive Corner");?&gt;&gt;Executive Corner&lt;/option&gt;
      &lt;option value="Executive Highlight" &lt;?php echo display_selected($tag, "Executive Highlight");?&gt;&gt;Executive Highlight&lt;/option&gt;
      &lt;option value="What's New" &lt;?php echo display_selected($tag, "What's New");?&gt;&gt;What's New&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>I set the $tag variable like this:</p>
  
  <pre><code>$tag='';
  
  if( !empty( $_GET['tagFilter'])){
      $tag = $_GET['tagFilter'];
  }
  </code></pre>
  
  <p>And this is my query:</p>
  
  <pre><code>$tag_query = array('relation' =&gt; 'AND');
  if(!empty($tag)){
      array_push($tag_query, array(
          'key' =&gt; 'article_type',
          'value' =&gt; $tag,
          'compare' =&gt; '='
      ));
  }   
  
  $filter_query_args = array(
      'post_type' =&gt; 'vbc_news_blog',
      'post_status' =&gt; 'published',
      'orderby' =&gt; 'date',
      'paged' =&gt; $paged,
      'date_query' =&gt; $date_query,
      'meta_query' =&gt; $tag_query
  );
  
  $filterQuery = new WP_Query( $filter_query_args );
  </code></pre>
  
  <p>I've tried addslashes and stripslashes (I don't really know how those work I just saw those solutions when looking around) but those didn't do anything. Anyone have any advice? </p>