Title: Searching using wp_query?
Last modified: November 4, 2020

---

# Searching using wp_query?

 *  Resolved [wpfan1000](https://wordpress.org/support/users/wpfan1000/)
 * (@wpfan1000)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/searching-using-wp_query/)
 * Hi,
 * Correct me if I am wrong, but I see this plugin being able to be used in a similar
   fashion as custom field plugins.
 * I can use wp_query to search for content in custom fields. And being able to 
   search like this is a mandatory requirement for my sites.
 * Can wp_query be used to search your plugin’s block fields?
 * If not, is there another way to search?
 * Thanks ahead of time…..

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Contributor [Luke Carbis](https://wordpress.org/support/users/lukecarbis/)
 * (@lukecarbis)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/searching-using-wp_query/#post-13627250)
 * Hi [@wpfan1000](https://wordpress.org/support/users/wpfan1000/) – unfortunately
   not. To make things as lightweight and fast as possible, we store block field
   values in the post content. Since it’s not in meta, blocks load much faster, 
   but can’t be filtered through wp_query.
 * We do have a featured request to enable this, though, as an optional setting 
   per block. We just haven’t gotten around to that yet.
 *  Thread Starter [wpfan1000](https://wordpress.org/support/users/wpfan1000/)
 * (@wpfan1000)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/searching-using-wp_query/#post-13627299)
 * Hi [@lukecarbis](https://wordpress.org/support/users/lukecarbis/),
 * Thank you for getting back to me.
 * With custom fields I can do a wp_query search say for:
 * Field name = City, value = “Chicago”
    AND Field name = Size, value > 1000
 * Am I correct in thinking that:
 * If I have a paragraph block labeled City and a post has the value “Chicago” for
   this block, and I have another paragraph block labelled Size, and the post has
   a value of 2000, then all that information, ie the labels and values are stored
   in one row in the database?
 * I believe this would make it hard to do an AND query like I could with custom
   fields…..
 *  Thread Starter [wpfan1000](https://wordpress.org/support/users/wpfan1000/)
 * (@wpfan1000)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/searching-using-wp_query/#post-13629836)
 * PS the feature of making each block a custom meta field is a great idea!! I add
   my vote to that 🙂

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Searching using wp_query?’ is closed to new replies.

 * ![](https://ps.w.org/genesis-custom-blocks/assets/icon.svg?rev=2373248)
 * [Genesis Custom Blocks](https://wordpress.org/plugins/genesis-custom-blocks/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/genesis-custom-blocks/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/genesis-custom-blocks/)
 * [Active Topics](https://wordpress.org/support/plugin/genesis-custom-blocks/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/genesis-custom-blocks/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/genesis-custom-blocks/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [wpfan1000](https://wordpress.org/support/users/wpfan1000/)
 * Last activity: [5 years, 6 months ago](https://wordpress.org/support/topic/searching-using-wp_query/#post-13629836)
 * Status: resolved