Advertisement
Guest User

Untitled

a guest
Jun 13th, 2013
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQL 0.25 KB | None | 0 0
  1. $where .=   " OR ID IN ( SELECT post_id FROM {$wpdb->postmeta}
  2.         WHERE meta_value LIKE '%" . $wp_query->query_vars['s'] . "%'
  3.         AND ( {$wpdb->posts}.ID=post_id AND {$wpdb->posts}.post_status!='inherit'
  4.         AND (  {$wpdb->posts}.post_type='product' ) ) )";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement