• Resolved ds1970

    (@ds1970)


    Hi, does anyone know if WordPress has a plugin for a Google reviews link generator? I’ve seen this generator widget on a few websites and I did a search on the plugins page to see if WordPress has one but couldn’t find anything. Would I need to hire a programmer to make a widget or is there a plugin for this (free or paid)? It looks like this:

    It has a field for someone to enter their business name and it returns their google reviews link. I would like to embed something like this on my website.

    Any help would be greatly appreciated. thanks

    • This topic was modified 3 years, 1 month ago by James Huff. Reason: link moved to proper field

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter ds1970

    (@ds1970)

    No, I’m not looking to display reviews. I wrote that yesterday so not sure why it was deleted.

    What do you wish to display?

    Thread Starter ds1970

    (@ds1970)

    I will find a programmer to make it since it looks like there’s no plugin for it. I want a widget that returns with a google reviews request link after you enter a business name. This is a link a business would send to their customers asking for a google review. Similar to what Whitespark and Podium have on their site. I’ll close this request now. thanks

    No problem @ds1970. All the best.

    Just in case it’s helpful, I asked ChatGPT to write code for a plugin that does what you want. If you have a little bit of coding experience then maybe you could get it to work.

    https://gist.github.com/noisysocks/5c3634f24afafad9dd892b0c58ac8d91

    This script sends a GET request to Google’s PlaceID lookup API when the button is clicked. It uses the entered business name to find the corresponding PlaceID, which is then used to construct a link to the Google Review page for that place. The link is then displayed on the page.

    Please note that while this code should work as a basic example, it’s a good idea to handle potential errors and edge cases. For example, the findplacefromtext API request might not return any candidates if the business name is misspelled or doesn’t exist. You might want to check for this and give an appropriate error message.

    Also, this is a simple demonstration and doesn’t include any security measures. In a real-world plugin, you should also make sure to properly sanitize and validate all input and output, handle errors gracefully, and consider potential security issues.

    Lastly, please remember to replace "YOUR_API_KEY" with your actual Google Places API key. If you don’t have one, you can get it from the Google Cloud Console.

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

The topic ‘Google reviews link generator’ is closed to new replies.