Get posts based on meta key/value
The problem It looks like you are saving the data as: $a = array( “13112” ); update_post_meta( $post_id, “article_author”, $a); where this will give you the meta_value a:1:{i:0;s:5:”13112″;} Your first query will give you escaped quotes: LIKE ‘%\”13112\”%’ Method 1 If you save the author array with numbers instead: $a = array( 13112 ); update_post_meta( … Read more