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

    (@flaviodj)

    Sorry for the delay,
    But I can clearly see you’ve altered the original code ( for instance you’ve added the business picture )

    It seems like you’ve commented out or broken the code.
    Re install using the original files and that should fix it.

    You can also add some code on the file yrt.php

    print_r($response);

    you should add that right after

    $response = json_decode($data);

    and you should have the api response appear, maybe that will get you on track

    If you’d like help modding the original widget please let me know, but please don’t act as if my code is broken.

    Thanks (marking as resolved since original code is not being used)

    Thread Starter hawkeye126

    (@hawkeye126)

    Sorry to anger you but I didn’t alter the code at all…
    I have no reason to lie about that sorry if you don’t believe me.
    I downloaded it from the WordPress repo…

    This ticket is not resolved but I will reinstall.

    Plugin Author flaviodj

    (@flaviodj)

    Sorry maybe I missused my wording, I am not angry at all, I am happy someone is using my widget ?? just thought you had modded it and broke it.

    The display on your page includes the picture of the company just before the company name.
    Nowhere in my code I added that.

    My code:

    <div>
    
    	<h2><a href="<? echo $response->url; ?>" title="<? echo $response->url; ?>" ><? echo $response->name; ?></a></h2>
    	<i title="<? echo $response->rating; ?> star rating">
    		<img style="vertical-align:middle" alt="<? echo $response->rating; ?> star rating" src="<? echo $response->rating_img_url; ?>">
    	</i>
    	<? echo $response->review_count; ?> reviews
    </div>

    I just looked at the source of your page and noticed this image source
    "https://wordpress.petelower.com/wp-content/plugins/yelp-widget-pro/includes/images/yelp.png"

    Wich indicates (if you haven’t modded it) you are complaining about the wrong widget. what shows in your page is yelp-widget-pro

    Try revising your page and make sure you activated this plugin because you haven’t

    Here is the piece of code from “yelp widget pro” that produces what you have on the page

    <div class="biz-img-wrap"><img class="picture" src="<?php if (!empty($businesses[$x]->image_url)) {
                                echo esc_attr($businesses[$x]->image_url);
                            } else {
                                echo YELP_WIDGET_PRO_URL . '/includes/images/blank-biz.png';
                            }; ?>"
                                <?php
                                //Set profile image size
                                switch ($profileImgSize) {
    
                                    case '40x40':
                                        echo "width='40' height='40'";
                                        break;
                                    case '60x60':
                                        echo "width='60' height='60'";
                                        break;
                                    case '80x80':
                                        echo "width='80' height='80'";
                                        break;
                                    case '100x100':
                                        echo "width='100' height='100'";
                                        break;
                                    default:
                                        echo "width='60' height='60'";
                                } ?> /></div>

    Sorry you have the wrong widget

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Not showing reviews in widget’ is closed to new replies.