• I just updated the plugin. Comments on my pages are working fine.

    Comments on blog posts return the error:

    Fatal error: Call to a member function have_posts() on a non-object in /home/web/wp-content/themes/redux/includes/single-related.php on line 54

    Code from single-related.php:

    <?php if( $my_query->have_posts() ) :
    							while ($my_query->have_posts()) :
    								$my_query->the_post();  ?>
    
                        <li>
    
                        	<?php if (  (function_exists('has_post_thumbnail')) && (has_post_thumbnail())  ) : /* if post has post thumbnail */ ?>
                        	<div class="post-thumb">
                            	<a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('blog-related'); ?></a>
                            </div>
                            <?php endif; ?>

    Any thoughts?

    https://www.ads-software.com/extend/plugins/facebook-comments-for-wordpress/

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Facebook Comments for WordPress] Fatal error: Call to a member function have_posts() on a n’ is closed to new replies.