WordPress.org

Ready to get started?Download WordPress

Forums

nrelate Related Content
Adsense is below Nrelate (4 posts)

  1. Abemedpibe
    Member
    Posted 1 year ago #

    Hello

    I have just installed Nrelate "Related posts" but now Nrelate ia above adsense and I would like adsense to be just below the individual post and above Nrelate.

    My blog is http://www.livinginashoebox.com

    Can you help?

    http://wordpress.org/plugins/nrelate-related-content/

  2. Abemedpibe
    Member
    Posted 1 year ago #

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

  3. @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

  4. Abemedpibe
    Member
    Posted 1 year ago #

    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="http://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(); ?>

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic