Need help with code

MicrotechXP

New Member
Messages
7,644
Reaction score
0
Points
0
Alright so on the website that I am fixing up (the design) for myself I am having issues. You can see it here: http://www.dotdosh.com to see what I want changed. Alright on the news posts it shows how many comments are in each post on the top of the post under the title. Now I want to move it down after the post on the right. How would I do that?

Here is the code:

PHP:
<?php session_start();?>
<?php get_header(); ?>

<div class="content">
<div class="left">
	<?php if (have_posts()) : ?>
<div class="border-sep">
	<?php ot_ads('category'); ?>
<div class="title"><h1><?php wp_title(); ?></h1></div>
	<ul class="recent">
	<?php if (is_category()) {
	$this_category = get_category($cat);
	if (get_category_children($this_category->cat_ID) != "") {
	echo "<div class=\"page-children article\">
	<ul>";
	wp_list_categories('orderby=id&show_count=0&title_li=&child_of='.$this_category->cat_ID);
	echo "</ul>
	</div>"; } } ?>
	<?php while (have_posts()) : the_post(); ?>
		<li id="post-<?php the_ID(); ?>">
			<div class="a-box">
			<?php ot_post_gravatar(40);?>
			<a class="a-title" title="<?php the_title(); ?>" href="<?php the_permalink() ?>"><?php ot_title_limit('53') ?></a>
			<div class="info">
			<span class="valign">By <?php the_author_posts_link() ?> on <?php the_time('F jS, Y') ?> | <?php comments_popup_link('No Comments', '1 Comment', '% Comments' );?><img src="<?php bloginfo('stylesheet_directory'); ?>/img/icons/comments.gif" alt="<?php comments_number('');?> Comments" border="0" class="valign-img" />
			<?php edit_post_link( 
			'Edit', 
			' | ', 
			'<img class="valign-img" src="'. get_option('home') .'/wp-content/themes/one-theme/img/icons/edit.gif" alt="Edit this article" border="0" />'); ?></span>
			</div>
			<?php ot_thumb_large(); ?>
			<div class="post">
				<?php ot_the_content(); ?>
                <div class="clear"></div>
			</div>
			</div>
	</li>
	<?php endwhile; ?>
</ul>
	<?php ot_paginate();?>
<div class="adsense-category-bottom"><?php ot_ads('cat-bottom'); ?></div>
	<?php else : ?>
	<?php include 'error.php';?>
	<?php endif; ?>
</div>
</div>

<?php get_sidebar(); ?>
<?php get_footer(); ?>

Thank you.
 

xPlozion

New Member
Messages
868
Reaction score
1
Points
0
move
PHP:
<?php comments_popup_link('No Comments', '1 Comment', '% Comments' );?><img src="<?php bloginfo('stylesheet_directory'); ?>/img/icons/comments.gif" alt="<?php comments_number('');?> Comments" border="0" class="valign-img" />
to where you want it. i'm not sure where exactly you want it, just look through the source and find it, then paste it there.
 

MicrotechXP

New Member
Messages
7,644
Reaction score
0
Points
0
I already have tried moving it to places and it does not work. Any suggestions where?
 

xPlozion

New Member
Messages
868
Reaction score
1
Points
0
where exactly do you want it to be placed? i'm not sure, so i can't tell you where it would go
 

Submariner

New Member
Messages
44
Reaction score
1
Points
0
Since it is using data from the while (have_posts()) loop it needs to stay inside that loop (i.e. it can be moved anywhere further down but it needs to be before the endwhile; command).


James
 

MicrotechXP

New Member
Messages
7,644
Reaction score
0
Points
0
where exactly do you want it to be placed? i'm not sure, so i can't tell you where it would go

AS I said in my original post I want it under the actual post.

James I put it before that and it did not work.
 
Top