Title: webdevop's Replies | WordPress.org

---

# webdevop

  [  ](https://wordpress.org/support/users/webdevop/)

 *   [Profile](https://wordpress.org/support/users/webdevop/)
 *   [Topics Started](https://wordpress.org/support/users/webdevop/topics/)
 *   [Replies Created](https://wordpress.org/support/users/webdevop/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/webdevop/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/webdevop/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/webdevop/engagements/)
 *   [Favorites](https://wordpress.org/support/users/webdevop/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Pods - Custom Content Types and Fields] WHERE clause for field of the “one” side of a OneToMany relationship](https://wordpress.org/support/topic/where-clause-for-field-of-the-one-side-of-a-onetomany-relationship/)
 *  Thread Starter [webdevop](https://wordpress.org/support/users/webdevop/)
 * (@webdevop)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/where-clause-for-field-of-the-one-side-of-a-onetomany-relationship/#post-16065098)
 * Hello Jory ( [@keraweb](https://wordpress.org/support/users/keraweb/) ),
 * I’m happy to announce that I found a solution:
 *     ```
       function my_filter_pods_attendee_params($params) {
         if ($params['name'] == 'pods_meta_attendee') {
           $id = $params['pod']->id;
           $params['options']['_field_object']->pick_where = "(event.ID IS NULL OR event.ID='".$id."')";
         }
         return $params;
       }
       add_filter('pods_field_pick_object_data_params', 'my_filter_pods_attendee_params', 1, 1);
       ```
   
 * It was a bit of a nightmare to figure this out, but it works, so it can’t be 
   completely wrong. 😉
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Pods - Custom Content Types and Fields] WHERE clause for field of the “one” side of a OneToMany relationship](https://wordpress.org/support/topic/where-clause-for-field-of-the-one-side-of-a-onetomany-relationship/)
 *  Thread Starter [webdevop](https://wordpress.org/support/users/webdevop/)
 * (@webdevop)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/where-clause-for-field-of-the-one-side-of-a-onetomany-relationship/#post-16027228)
 * This looks promising.
    I’ll dig into it.
 * Thanks for the pointers. 🙂
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Pods - Custom Content Types and Fields] WHERE clause for field of the “one” side of a OneToMany relationship](https://wordpress.org/support/topic/where-clause-for-field-of-the-one-side-of-a-onetomany-relationship/)
 *  Thread Starter [webdevop](https://wordpress.org/support/users/webdevop/)
 * (@webdevop)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/where-clause-for-field-of-the-one-side-of-a-onetomany-relationship/#post-16027028)
 * But … um … if you could describe how you would manually filter the SQL query.
 * Are there some hooks in the plugin code that I could use to design my own query
   maybe?
    -  This reply was modified 3 years, 8 months ago by [webdevop](https://wordpress.org/support/users/webdevop/).
      Reason: corrected typo
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Pods - Custom Content Types and Fields] WHERE clause for field of the “one” side of a OneToMany relationship](https://wordpress.org/support/topic/where-clause-for-field-of-the-one-side-of-a-onetomany-relationship/)
 *  Thread Starter [webdevop](https://wordpress.org/support/users/webdevop/)
 * (@webdevop)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/where-clause-for-field-of-the-one-side-of-a-onetomany-relationship/#post-16027004)
 * Hi Jory,
 * thanks for your reply.
 * It’s a pity.
 * I also already thought about making it a ManyToMany relationship.
    But then I
   would have to make the attendee system wide unique and I could not store information
   on the attendee that differ from event to event.
 * I will keep investigating. Maybe I can do some CSS tricks to hide the unwanted
   attendees.
 * Anyways, the PODS plugin is great. Looking forward to v3.0 🙂
 * Cheers

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