Hi All,
I have recently updated YARPP plug-in, and since doing so i'm getting this error: Fatal error: Call to undefined function yarpp_sql()
Has anyone else come across this or know how to fix it?
Here is an example of my offending blog:
http://differentwatch.com/4-most-popular-running-watches/
The code causing the problem is in single.php (somewhere in the following:)
<h2>Related Posts</h2>
<div class="clr"></div>
<?php
$results = $wpdb->get_results(yarpp_sql(array('post'),array()));
foreach ( (array) $results as $_post ) :
$_post = get_post($_post->ID); ?>
<div class="th fl"><a href="<?php echo get_permalink($_post->ID); ?>"><img src="<?php echo get_post_meta($_post->ID, 'post-img', true); ?>" alt="" /></a></div>
<div><a href="<?php echo get_permalink($_post->ID); ?>"><?php echo $_post->post_title; ?></a></div>
<div class="hlr"></div>
<?php endforeach; ?>
</div>
<div class="post-rel">
<div class="content">
<div class="subcols">
<div class="col1">
I know Mitcho (the creator of YARPP) mentioned in a previous post he was going update the plug-in to throw out an error if the code included 'yarpp_sql' rather then 'related_posts()' but istill can't get it to work. Help! Anyone?