Jump to content

Trying to move comments further down the page (wordpress)


phpchick

Recommended Posts

Here is the page http://fuzzyip.com/bnnsecret/?p=8#comment-2 I basically want to move the comments section down below where the three columns are towards the bottom.

 

What I've tried doing is copying this <?php comments_template(); ?> 

 

and pasting it at the bottom of the source. But when I do that, the entire comments section disappears.

 

I'm not exactly sure why, all I want to do is move it from above the three columns to below it.

 

<?php get_header(); ?>
<div id="content" class="container">
	<div class="column_main">
		<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
		<h2><?php the_category(', '); ?></h2>
		<h1><?php the_title(); ?></h1>
<h2><i>Written by <b><?php the_author_posts_link(); ?></b><br> <?php the_time('l, F j, Y G:i'); ?></i></h2>
		<?php the_tags( '<div class="meta">Tags: ', ', ', '</div>'); ?>
		<div class="hr_top"></div>
		<div id="entry">

		<?php the_content(); ?>
		<?php edit_post_link('edit this page', '<p>', '</p>'); ?></div>
		<br />
		<br />


		<?php comments_template(); ?>
		<?php endwhile; else: ?>
		<h1>Sorry, no posts matched your criteria.</h1>
		<?php endif; ?>



	</div>
	<?php get_sidebar(); ?>
	<div class="hr_top"></div>
	<div class="column_left_b"> <!-- The 1st of the 3 columns with the featured articles at the bottom -->
		<?php query_posts('showposts=1&cat=1'); ?> <!-- Edit the cat= part to the number of the desired category (check the category IDs in your WordPress system), and this will show the 1st of the chosen category -->
		<?php while (have_posts()) : the_post(); ?>
		<h2><?php the_category(', '); ?></h2>
		<h1><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h1>
		<?php endwhile; ?> <!-- END -->
		<?php query_posts('showposts=8&offset=1&cat=1'); ?> <!-- Show the 8 most recent articles in the already chosen category, first one not included -->
		<h2>More In <?php single_cat_title(); ?></h2>
		<ul>
			<?php while (have_posts()) : the_post(); ?>
			<li><span class="title"><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></span>
			<br />
			</li>
			<?php endwhile; ?>
		</ul>
		<br />
		<p class="link"><?php the_category(' '); ?></p>
	</div> <!-- END -->
	<div class="column_center_b"> <!-- The 2nd of the 3 columns with the featured articles at the bottom -->
		<?php query_posts('showposts=1&cat=1'); ?> <!-- Edit the cat= part to the number of the desired category (check the category IDs in your WordPress system), and this will show the 1st of the chosen category -->
		<?php while (have_posts()) : the_post(); ?>
		<h2><?php the_category(', '); ?></h2>
		<h1><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h1>
		<?php endwhile; ?> 
		<?php query_posts('showposts=8&offset=1&cat=1'); ?> <!-- Show the 8 most recent articles in the already chosen category, first one not included -->
		<h2>More In <?php single_cat_title(); ?></h2>
		<ul>
			<?php while (have_posts()) : the_post(); ?>
			<li><span class="title"><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></span>
			<br />
			</li>
			<?php endwhile; ?>
		</ul>
		<br />
		<p class="link"><?php the_category(' '); ?></p>
	</div> <!-- END -->
	<div class="column_right"> <!-- The 3rd of the 3 columns with the featured articles at the bottom -->
		<?php query_posts('showposts=1&cat=1'); ?> <!-- Edit the cat= part to the number of the desired category (check the category IDs in your WordPress system), and this will show the 1st of the chosen category -->
		<?php while (have_posts()) : the_post(); ?>
		<h2><?php the_category(', '); ?></h2>
		<h1><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h1>
		<?php endwhile; ?>
		<?php query_posts('showposts=8&offset=1&cat=1'); ?> <!-- Show the 8 most recent articles in the already chosen category, first one not included -->
		<h2>More In <?php single_cat_title(); ?></h2>
		<ul>
			<?php while (have_posts()) : the_post(); ?>
			<li><span class="title"><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></span>
			<br />
			</li>

			<?php endwhile; ?>
		</ul>
		<br />
		<p class="link"><?php the_category(' '); ?></p>

	</div> <!-- END -->
	<div class="hr_bottom"></div>
</div>
<?php get_footer(); ?>

Link to comment
Share on other sites

I have tried moving that comments snippet into all sorts of configurations, but all result in the disappearance of the box altogether

 

 

 

<p class="link"><?php the_category(' '); ?></p>

 

</div> <!-- END -->

<div class="hr_bottom"></div>

</div><?php comments_template(); ?>

<?php get_footer(); ?>

 

 

 

 

<p class="link"><?php the_category(' '); ?></p>

 

</div> <!-- END -->

<div class="hr_bottom"></div>

<?php comments_template(); ?></div>

<?php get_footer(); ?>

 

 

 

 

<p class="link"><?php the_category(' '); ?></p>

 

</div> <!-- END -->

<div class="hr_bottom"><?php comments_template(); ?></div>

</div>

<?php get_footer(); ?>

 

 

 

 

 

<p class="link"><?php the_category(' '); ?></p>

 

</div> <!-- END -->

<?php comments_template(); ?>

<div class="hr_bottom"></div>

</div>

<?php get_footer(); ?>

 

 

 

 

 

<p class="link"><?php the_category(' '); ?></p>

<?php comments_template(); ?>

</div> <!-- END -->

 

<div class="hr_bottom"></div>

</div>

<?php get_footer(); ?>

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.