• Resolved danielecelsa

    (@danielecelsa)


    Hello,

    I have the review submission form in the Elementor template of my custom post type.

    When someone leaves a review, I would like the page to be automatically refreshed in order to show the updated reviews for that post.

    In FAQ I read about ‘redirect to a custom URL’, but in this case I guess is a bit different, since the custom URL is the post itself, so I cannot set it before in the template.

    Also, to be honest, I am not even sure about how to use ‘Custom Field’ to set ‘redirect_to’ in my template.
    If you are going to suggest this solution, could you also kindly point me on how to set it for a template?

    I really thank you in advance.
    Regards,
    Daniele Celsa

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Gemini Labs

    (@geminilabs)

    The easiest way to do this is to add the no-ajax class to the form shortcode.

    [site_reviews_form class="no-ajax"]

    This will tell Site Reviews to submit the review normally without ajax (if validation passes) which will reload the page.

    WordPress provides a built-in Custom Fields meta box on pages. Since you are using Elementor you can read their explanation here (scroll down to the “ How to Use the Native WordPress Custom Fields Feature (Manual Method)” section): https://elementor.com/blog/wordpress-custom-fields/

    Thread Starter danielecelsa

    (@danielecelsa)

    Thank you very much, it worked! ??

    Cheers,
    Daniele

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to refresh the page after a review submission’ is closed to new replies.