Title: Query based on hidden data?
Last modified: August 24, 2016

---

# Query based on hidden data?

 *  [Seobrien](https://wordpress.org/support/users/seobrien/)
 * (@seobrien)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/query-based-on-hidden-data/)
 * I’m looking for a solution that allows me to change results based on data hidden
   from view on pages. Here’s the use case:
 * 2 pages. 1 about a pizza restaurant in Houston, Tx that is poorly rated. Other
   about an italian restaurant with pizza in Houston, Tx that is well rated.
 * The second page wouldn’t show that pizza is available because it isn’t part of
   the page content nor title. “pizza” is a hidden dataset.
 * When the user searches “pizza in Houston” the second page should appear first.
   Why? It has pizza and it is better rated.
 * I’m not clear if Better Search can have hidden data (meta data? rich schema data?)
   associated with pages AND have results weighted by many different datapoint such
   as the rating of a business.
 * [https://wordpress.org/plugins/better-search/](https://wordpress.org/plugins/better-search/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Ajay](https://wordpress.org/support/users/ajay/)
 * (@ajay)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/query-based-on-hidden-data/#post-6173668)
 * Hi, Better Search currently doesn’t have this in built. Even now the criteria
   is post_title and post_content only and it’s matched through various metrics.
 * In theory you could write some very advanced queries to filter the results and
   arrive at what you’re looking for.
 * The plugin has several filters to help make this change without editing plugin
   files. however, the changes would be well beyond what I could achieve right now.

Viewing 1 replies (of 1 total)

The topic ‘Query based on hidden data?’ is closed to new replies.

 * ![](https://ps.w.org/better-search/assets/icon-256x256.png?rev=2988729)
 * [Better Search - Relevant search results for WordPress](https://wordpress.org/plugins/better-search/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/better-search/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/better-search/)
 * [Active Topics](https://wordpress.org/support/plugin/better-search/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/better-search/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/better-search/reviews/)

## Tags

 * [hidden](https://wordpress.org/support/topic-tag/hidden/)

 * 1 reply
 * 2 participants
 * Last reply from: [Ajay](https://wordpress.org/support/users/ajay/)
 * Last activity: [10 years, 10 months ago](https://wordpress.org/support/topic/query-based-on-hidden-data/#post-6173668)
 * Status: not resolved