Title: Set function with QueryID
Last modified: November 26, 2019

---

# Set function with QueryID

 *  [LesTexas60](https://wordpress.org/support/users/lestexas60/)
 * (@lestexas60)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/set-function-with-queryid/)
 * I found some code to set the function to run on a certain page but still having
   problems with that way. The Elementor Post Display widget has a field called 
   Query ID. Is there a way to connect the code to that Query ID so the function
   only runs in that widget?

The topic ‘Set function with QueryID’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/my-custom-functions_0e1030.svg)
 * [My Custom Functions](https://wordpress.org/plugins/my-custom-functions/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/my-custom-functions/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/my-custom-functions/)
 * [Active Topics](https://wordpress.org/support/plugin/my-custom-functions/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/my-custom-functions/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/my-custom-functions/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [LesTexas60](https://wordpress.org/support/users/lestexas60/)
 * Last activity: [6 years, 6 months ago](https://wordpress.org/support/topic/set-function-with-queryid/)
 * Status: not a support question