• Resolved elcondorito

    (@elcondorito)


    Hello Rich,

    I would like to display GG reviews for multiple businesses.
    I am managing a kind of directory for a specific line of business.

    Though the widget outpus seems fine on the backend, on the front end, it always show the latest one, regardless of the grw_id.

    I am using ACF, and here’s my code (with debug option : the $grw_id show the correct value, but not the shortcode output.

    $grw_id= get_field('google_review_id'); 
    if ($grw_id){
    	echo '<br/>grw_id :' . $grw_id; //correct (varies according to the entry)
    	echo do_shortcode( '[grw id=". $grw_id ."]' ); //always the same output. ??
    }

    Any ideas ?

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author richplugins

    (@richplugins)

    Hi @elcondorito,

    Please send debug information from the settings page of the plugin to [email protected].

    Also, send two links with examples of showing the same shortcode on the different pages.

    Thanks!

    *****SOLVED SOLVED SOLVED *********
    Hi

    I discovered this thread as I too am trying to achieve what the original post says, using the same plugins, and I have subsequently used the same code which is also achieving the same result whereby only a single location is displaying.

    I would therefore like to please know if you guys found a solution and if so, if you would mind sharing it with me.

    Many thanks.

    • This reply was modified 2 years, 11 months ago by supadigital.
    Plugin Author richplugins

    (@richplugins)

    Hi @supadigital,

    Sure, I will tell your as soon as I have any more information about this issue. Currently it’s in progress.

    Thanks!

    Plugin Author richplugins

    (@richplugins)

    Hi @elcondorito,

    If it’s still relevant and not fixed, please reopen.
    Thanks!

    • This reply was modified 2 years, 10 months ago by richplugins.
    walt

    (@walterwphillips)

    I am having the same issues as the other 2. Was there a workaround?

    I emailed screen shots & docs.

    Thread Starter elcondorito

    (@elcondorito)

    Hello @richplugins,

    I concur, the problem still remains.
    Now it’s in production, so that you can investigate (sent you an email with all details).

    Cheers !

    Thread Starter elcondorito

    (@elcondorito)

    Hello @richplugins, @walterwphillips , @supadigital !

    Found out the solution (my bad) :

    I was using the shortcode with dynamic params this way :
    echo do_shortcode( '[grw id=". $grw_id ."]' ); //always the same output. ??
    And I now use this :
    echo do_shortcode( '[grw id="'. $grw_id .'"]' ); //eureka moment

    Will mark the topic as solved.

    Plugin Author richplugins

    (@richplugins)

    Hi @elcondorito,

    Sure, it should be wrapped by quotes, because it’s a variable of PHP, sorry, how did I not notice the error in this code.

    Great that you resolved it!

    Thanks!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Multiple businesses’ is closed to new replies.