• Resolved alteropax

    (@alteropax)


    Hi,

    We started using this plugin a few weeks ago, and it started out working fine, but as of today, the shortcode has completely stopped working, and I cannot figure out why.

    Other shortcodes from the plugin appear to be working fine, but the basic one (that displays the actual reviews) [reviews_rating] is not.

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

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

    (@designextreme)

    @alteropax I cannot see any trace of the plugin on this page other than a cached/combined/minified version of the plugin’s JavaScript.

    I do see there are files associated with the plugin and I presume that it is activated. Even if there are problems with the Google API setup and the Place ID, it would show something (particularly, if the errors parameter is set).

    Please use this to display any issues on the page:

    [reviews_rating errors=true]

    Also, if you can point me to where the Shortcode output should be in your page, this would be useful in this case.

    Thread Starter alteropax

    (@alteropax)

    @designextreme This website is still using the classic editor and the exact page content is:

    <div id="reviewThing">[reviews_rating errors=true]</div>
    [reviews_rating_link reviews_link]Our Reviews on Google[/reviews_rating_link]

    The second shortcode from the plugin has been working as expected, whereas the basic shortcode (now the errors version requested) renders no output at all that I can detect.

    Visually it should be rendered above the “Our Reviews on Google” link from the second shortcode, and in the HTML it should be inside the div with the id “reviewThing”, which was added before opening the ticket to verify that the shortcode was not rendering any content.

    The plugin is active, and states that it has retrieved data. The JSON object on the retrieved Data tab has a status of “OK” and 5 “reviews” objects.

    Plugin Author Noah Hearle

    (@designextreme)

    @alteropax I’ve tested the same Shortcode with your Place ID and it works perfectly on my setup,

    The only thing that I can think of for this: the Shortcode is being stripped out of the HTML before it’s being applied. Can you try this (in your instance) to see if it works?

    [reviews_rating errors=true][/reviews_rating]
    Thread Starter alteropax

    (@alteropax)

    @designextreme Its a bit odd, but I haven’t changed anything with the website, and it is now displaying again. My best guess is something was going wrong with the API requests for a bit?

    Thread Starter alteropax

    (@alteropax)

    Sorry to revive this thread, but this problem is happening on our website again. I am now loading the shortcode via PHP, but it is still not returning anything.

    <?php
    /**
     * The template for displaying all pages.
     *
     * This is the template that displays all pages by default.
     * Please note that this is the WordPress construct of pages
     * and that other 'pages' on your WordPress site will use a
     * different template.
     *
     * @package WordPress
     * @subpackage Twenty_Ten
     * @since Twenty Ten 1.0
     */
    
    get_header(); ?>
    
    		<div id="container">
    			<div id="content" role="main">
                <?php do_shortcode("[reviews_rating]") ?>
    			<?php
    			/* Run the loop to output the page.
    			 * If you want to overload this in a child theme then include a file
    			 * called loop-page.php and that will be used instead.
    			 */
    			get_template_part( 'loop', 'page' );
    			?>
    
    			</div><!-- #content -->
    		</div><!-- #container -->
    
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>
    
    Plugin Author Noah Hearle

    (@designextreme)

    @alteropax Remember to echo it.

    Thread Starter alteropax

    (@alteropax)

    Oops, good catch, but unfortunately I am still not seeing anything. Any Ideas? I can provide you with access if it might help.

    Plugin Author Noah Hearle

    (@designextreme)

    @alteropax Not really. Are you sure this page wasn’t cached?

    If you want to continue this conversation, please email me directly through the Design Extreme website (listed in the various support links).

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

The topic ‘Basic Shortcode Rendering Nothing’ is closed to new replies.