Question:
I’m running a query on users and want to include only users who have meta data (page_history) with a specific value. The problem I’m having is that the meta data is an object, and I can’t seem to get the query to check the value of the object:Thank you
Answer:
This meta object will be serialized before being stored in the database column. The post-type field after serialization will be like that in DBs:9:"post-type";s:16:"custom_post_type";
You can use LIKE compare to filter it.
16
to the custom post type name count.If you have better answer, please add a comment about this, thank you!