- This topic has 3 replies, 2 voices, and was last updated 8 years, 2 months ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
These forums are now closed and remain for historical purposes.
None of the content applies to the new version 3. For support, get in touch via our contact form.
Forums › Forums › Search & Filter Pro › Search Filter pro not updating when post submitted via gravity forms
Tagged: cache, gravity forms
Hi There, I’m using gravity forms for user generated content in the frontend. All is working fine, posts are published with no errors and appear immediately in normal wordpress queries. However they don’t appear on SF results pages unless I manually go into admin and resave them. Is there anything I can do about this. I tried to use this, but it doesnt work:
add_action( 'gform_after_submission_2', 'updatecache', 10, 2 );
function updatecache( $entry, $form ) {
$post = get_post( $entry['post_id'] );
do_action("search_filter_update_post_cache", $post);
}
Any guidance would be much appreciated!
All the best, Charlie
Hi Trevor,
the 2 just refers to the form ID – have tried both ways: https://docs.gravityforms.com/gform_after_submission/