I got the custom_post_type_data in which I store some variables when I make a new post. Variables likes Author, Price etc. I implemented a filtering by author, so when you click on James (for example), you will see all James`s products. All seemed nice until now. Today I discovered a little bug (At James products page, there are some other authors products listed). I do not know why exactly, but I guess I will need to be more specific, by adding a "%" after $author (James). The problem is that this will not work at all. Any idea why?
'meta_query' => array( array( 'key' => 'custom_post_type_data', 'value' => $author, 'compare' => 'LIKE', )