Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Abemedpibe

    (@abemedpibe)

    I have read “Manually Inserting PHP function into your FUNCTIONS.PHP FILE:” but I don’t understand where I should place the text

    @abemedpibe — If you need help with this, would you like to meet with us over Webex? This is the best way for us to help you with this issue, since the fix for this involves a sort order for all plugins that attach themselves to your post content so it’s a bit different for each site.

    – Katrina @ nRelate

    Thread Starter Abemedpibe

    (@abemedpibe)

    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(); ?>
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Adsense is below Nrelate’ is closed to new replies.