Could you maybe just tell me, where to insert this:
<?php if (function_exists(‘nrelate_related’)) nrelate_related(); ?>
In my single.php that looks like this:
[ Moderator note: please wrap code in backticks or use the code button. ]
<?php get_header(); ?>
<?php
/*
------------------------------------------
Start Content
------------------------------------------
*/
$post_layout = stripslashes( $data['accord_post_layout'] );
$blog_sharing = stripslashes( $data['accord_blog_sharing'] );
$post_layout = stripslashes( $data['accord_post_layout'] );
?>
<div id="content" class="row-fluid clearfix">
<div class="span12" >
<div id="post-entry">
<?php
if ( have_posts() ) : while ( have_posts() ) : the_post();
setPostViews(get_the_ID()); ?>
<div id="post-<?php the_ID(); ?>" <?php post_class('row-fluid'); ?> itemscope itemtype="https://schema.org/BlogPosting">
<?php if ( $post_layout == 'l_c_r' ) : ?>
<div class="span3">
</div><!-- /span12 -->
</div><!-- /row-fluid -->
<div class="row-fluid single-post-sidebar">
<div class="margin-30b clearfix"></div>
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar("Single Post Widgets") ) : ?>
<?php endif; ?>
</div><!-- /row-fluid -->
</div><!-- /span3 -->
<div class="span6">
<?php get_template_part( 'content', 'single' ); ?>
</div> <!-- /span6 -->
<div class="span3">
<?php
if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar("Sidebar") ) : ?>
<?php endif; ?>
</div> <!-- /span3 -->
<?php else : ?>
<!-- Single Post with Right Sidebar -->
<div class="span9">
<?php get_template_part( 'content', 'single' ); ?>
</div> <!-- /span9 -->
<div class="span3">
<div class="margin-30b clearfix"></div>
<?php
if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar("Sidebar") ) : ?>
<?php endif; ?>
</div> <!-- /span3 -->
<?php endif; ?>
</div> <!-- /row-fluid -->
<?php endwhile; endif; ?>
</div> <!-- post-entry -->
</div> <!-- /span12 -->
</div> <!-- content -->
<?php get_footer(); ?>