Title: simple_fields_query_posts &#8211; multiple num_in_set option
Last modified: August 20, 2016

---

# simple_fields_query_posts – multiple num_in_set option

 *  [jakecool](https://wordpress.org/support/users/jakecool/)
 * (@jakecool)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/simple_fields_query_posts-multiple-num_in_set-option/)
 * Hi there,
    thank you for this great plugin! I currently have set up a repeatable
   field in a custom post type. Say the field name is video. What I would like to
   do is simply query posts that have a particular video(id) as field and use the
   results (post title) as the title of the page. So that when i request a Video(
   post type), the code will look for the posts that have the requested video as
   a field. This is what happens: If the post has only one video, when I execute“
   simple_fields_query_posts”, I get the expected results. On the other hand, if
   the post has more than one video, what happens is that the resulting query is
   empty (no results) since the “sf_num_in_set” argument (which i don’t set) is 
   setted to 1 by default.
 * I’m not able to retrieve that parameter before sending the query, is there something
   I am missing?
 * thank you
 * [http://wordpress.org/extend/plugins/simple-fields/](http://wordpress.org/extend/plugins/simple-fields/)

Viewing 1 replies (of 1 total)

 *  Plugin Contributor [Pär Thernström](https://wordpress.org/support/users/eskapism/)
 * (@eskapism)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/simple_fields_query_posts-multiple-num_in_set-option/#post-3350132)
 * Could you give me some example of the code you are using?
 * Perhaps getting the meta keys and then using [http://codex.wordpress.org/Class_Reference/WP_Query#Custom_Field_Parameters](http://codex.wordpress.org/Class_Reference/WP_Query#Custom_Field_Parameters)
   
   directly is they way to go here.

Viewing 1 replies (of 1 total)

The topic ‘simple_fields_query_posts – multiple num_in_set option’ is closed to 
new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/simple-fields_fafafa.svg)
 * [Simple Fields](https://wordpress.org/plugins/simple-fields/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simple-fields/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simple-fields/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-fields/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-fields/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-fields/reviews/)

## Tags

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

 * 1 reply
 * 2 participants
 * Last reply from: [Pär Thernström](https://wordpress.org/support/users/eskapism/)
 * Last activity: [13 years, 4 months ago](https://wordpress.org/support/topic/simple_fields_query_posts-multiple-num_in_set-option/#post-3350132)
 * Status: not resolved