• Resolved tomekwebdeveloper

    (@tomekwebdeveloper)


    I would like to automate adding reviews to individual pages – I have created some CPT, on each of the individual cpt single page there it must a separate feedback system. I do not want to use shortcode because these single page are over 10,000. How can I add automatic attribution of reviews to a single page?

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

    (@geminilabs)

    If you are assigning reviews to your CTP pages, then you can use post_id in place of the actual Post ID as the assign_to/assigned_to shortcode option values.

    For example:

    [site_reviews_form assign_to=post_id]
    

    And:

    [site_reviews assigned_to=post_id]
    [site_reviews_summary assigned_to=post_id]
    

    You can also add the shortcode directly to the page template PHP file like this:

    <?php
    
    if( shortcode_exists( 'site_reviews' )) {
        echo do_shortcode( '[site_reviews assigned_to=post-id]' );
    }

    etc.

    Thread Starter tomekwebdeveloper

    (@tomekwebdeveloper)

    Hi Gemini Labs.

    Thanks for quick reply.

    I am not sure if I have been well understood.

    I want assigned to post in automate. And only use shortcode like this for example: [site_reviews assigned_to=”auto”].

    The whole process takes place post id automatically, without having to copy the shortcode and assign the post id.

    Plugin Author Gemini Labs

    (@geminilabs)

    I want assigned to post in automate. And only use shortcode like this for example: [site_reviews assigned_to=”auto”].

    Exactly! If you use post_id as the value instead of the actual post ID, Site Reviews will automatically use the post ID of the current page.

    So do this:

    [site_reviews assigned_to=post_id]

    Instead of this:

    [site_reviews assigned_to=1022]

    Thread Starter tomekwebdeveloper

    (@tomekwebdeveloper)

    I did not understand – you wrote this in the first post. thanks for the explanation!

    Its great. the best plugin on reviews.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Automate reviews’ is closed to new replies.