daily pastebin goal
66%
SHARE
TWEET

ulitmate wp query search filter

a guest Jan 5th, 2014 505 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. add_filter('uwpqsf_form_bottom', 'exclude_cmf');
  2. function exclude_cmf(){
  3. $i= '100';// number in the array of meta field, must greater than your meta field filter number.
  4. $metakey = '_thumbnail_id';//your meta key
  5. echo '<input type="hidden" name="cmf['.$i.'][metakey]" value="'.$metakey.'"/>';
  6. echo '<input type="hidden" name="cmf['.$i.'][compare]" value="2"/>';
  7. echo '<input type="hidden" name="cmf['.$i.'][value]" value="uwpqsfcmfall"/>';
  8. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top