Gravity Form Hooks

Hooks Run for Initial Form Load Enqueue Scripts gform_form_post_get_meta | FILTER gform_form_post_get_meta_{form_id} | FILTER gform_pre_enqueue_scripts | ACTION gform_pre_enqueue_scripts_{form_id} | ACTION gform_has_conditional_logic | FILTER...

WP pre_get_posts Usage

Using pre_get_posts can be very useful for optimizing a query on a looped page.  It allows you to add limitations or custom post types to the main WP query allowing you to do what you have been doing in two steps into one single step.  Here is one example of how to...