title: in_array() expects parameter 2 to be array, string given in Classipress
body: <p>I'm using <code>Classipress theme</code> for wordpress, and I'm trying to sticky my featured ads on the on in categories .</p>
  
  <p>I found a code that is return this error:</p>
  
  <pre><code>Warning: in_array() expects parameter 2 to be array, string given in loop-ad_listing.php on line 26
  </code></pre>
  
  <p>To use the sticky on top code, I had to edit two pages and insert two codes and I'll post the error part:</p>
  
  <p>First: <code>loop-ad_listing.php</code></p>
  
  <h2>Code1:</h2>
  
  <pre><code>global $postisfeatured;
  global $featurePostArray;
  
  if ($postisfeatured == "1") 
      array_push($featurePostArray, $post-&gt;ID);
  
  if (in_array($post, "ID", $featurePostArray) &amp;&amp; $postisfeatured != "1") 
      echo '&lt;div class="hide"&gt;';
  </code></pre>
  
  <h2>Code2:</h2>
  
  <pre><code>if ($postisfeatured != "1") {
      appthemes_after_endwhile();
      $postisfeatured = "";
  }
  </code></pre>
  
  <p>That line: <code>if (in_array($post,"ID",$featurePostArray) &amp;&amp; $postisfeatured != "1") {</code>
  is the error.</p>