• Resolved cernatescualin

    (@cernatescualin)


    Hello,

    Is it possible to create a post using the title from site-reviews and add the review to that post?
    I want to create a post form that will create a new post and each post to have their own review section.
    At the moment the only solution that I have is to use a post form to create the post and to manually put the shortcode for the review section. In this case, is there an option to put the site-review plugin on all posts?

    Thank you.

    The page I need help with: [log in to see the link]

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

    (@geminilabs)

    You can use the WordPress do_shortcode function in your theme’s page template like this:

    <?php echo do_shortcode('[site_reviews_form assigned_posts=post_id]'); ?>
    
    Thread Starter cernatescualin

    (@cernatescualin)

    Can you also tell me if it is possible to refresh the post after you submit the review? At this moment you need to refresh the post manually to be able to see the posted review.

    Thank you for your help.

    Plugin Author Gemini Labs

    (@geminilabs)

    Due to the modular nature of the Site Reviews shortcodes and the flexibility they provide, it is not currently possible to add the newly submitted review to the page without a page reload.

    You have three options:

    1. Automatically reload the page after a successful submission using javascript: https://www.ads-software.com/support/topic/send-the-review-in-ajax-or-force-reloading-the-page/#post-12529134

    2. The site-reviews/after/submission javascript event used in the option above now contains the submitted review in the event.detail object, so if you are familiar with writing custom Javascript, you can use that to insert the review yourself.

    3. Redirect to another page URL (or the same page URL) on a successful submission:

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Use site reviews to create new post’ is closed to new replies.