• Resolved jackking12

    (@jackking12)


    Wondering if possible or how to go about displaying the reviews by API or javascript on a different website.

    For example, having a Javascript on that page specifically that can be called from a different website to get the reviews or the aggregate score which in turn can be displayed on that site.

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

    (@geminilabs)

    This is not yet possible. You will be able to do this once support has been added for the WordPress REST API (planned for a future version).

    Thread Starter jackking12

    (@jackking12)

    Would it be possible as a custom coded solution? If so, can i PM you?

    Plugin Author Gemini Labs

    (@geminilabs)

    I generally can’t do custom work as I don’t usually have the bandwidth for it, and in particular this week I have other commitments and deadlines to meet.

    However, I do tend to prioritise feature requests from premium members as they help to support the development of Site Reviews.

    Thread Starter jackking12

    (@jackking12)

    No problem. I am a premium member since February the 15 2021.

    Plugin Author Gemini Labs

    (@geminilabs)

    @jackking12 please use the support form on your Nifty Plugins account page with the request so I can make a note of it and I’ll see what next week is like.

    Thread Starter jackking12

    (@jackking12)

    Hi, any update on the JSON approach? I sent a message through on the Nifty Plugins but heard nothing back.

    Plugin Author Gemini Labs

    (@geminilabs)

    @jackking12

    I got the email and have made a note of it.

    I’ll probably be able to get around to it towards the end of this week / beginning of next week.

    Thread Starter jackking12

    (@jackking12)

    Ok thats cool. One quick question, is there a hook that would allow me to echo out the aggregate score?

    Thread Starter jackking12

    (@jackking12)

    Like a hook implemented with just a shortcode on an individual page? Obviously the plugin itself does that as well but just the actual score itself to be able to print it off as a number on its own?

    Plugin Author Gemini Labs

    (@geminilabs)

    Have you tried using the glsr_get_ratings() function?

    You can also use get_post_meta(get_the_ID(), '_glsr_average', true); to get the average rating of a page which has reviews assigned to it.

    See also: https://pastebin.com/MCDxctJ5

    Thread Starter jackking12

    (@jackking12)

    Legend! Appreciate it, the get_post_meta one is perfect.

    Plugin Author Gemini Labs

    (@geminilabs)

    Note that using get_post_meta will only return a value if the page has reviews assigned to it.

    Thread Starter jackking12

    (@jackking12)

    Yup, I have been assigning reviews to pages / posts so should be fine, thanks.

    Thread Starter jackking12

    (@jackking12)

    How would i go about creating a filter in the backend to filter the reviews by assigned posts? Currently its dates, ratings and forms, is there a way to list out the assigned posts or category its assigned to?

    Plugin Author Gemini Labs

    (@geminilabs)

    @jackking12

    Please try to keep your questions specific to the topic of the thread. Next time if you have a new question that is different from the current support topic, please create a new support topic for it.

    Please see: https://pastebin.com/Pm5Pk4KX

Viewing 15 replies - 1 through 15 (of 16 total)

The topic ‘Fetch Reviews By Api’ is closed to new replies.