I want to change the order of the comments
-
hello! please help me!
I want to change the order of the comments but I’m not a good programmer…
(Last comment first and so on)
Thanks for help.
This is my comments.php:<?php if (function_exists(‘comment_form_text_output’)){ comment_form_text_output(); } ?>
<?php if ( !empty($post->post_password) && $_COOKIE[‘wp-postpass_’ . COOKIEHASH] != $post->post_password) : ?>
<p><?php _e(‘Enter your password to view comments.’,’benevolence’); ?></p>
<?php return; endif; ?><?php if ( comments_open() ) : ?>
<b><?php _e(‘Einfach losschreiben:’,’benevolence’); ?></b>
<?php _e(‘ ‘,’benevolence’); ?><form action=”<?php echo get_settings(‘siteurl’); ?>/wp-comments-post.php” method=”post” id=”commentform”>
<?php if ( $user_ID ) : ?>
<p><?php _e(‘Logged in as’,’benevolence’); ?> /wp-admin/profile.php”><?php echo
$user_identity; ?>. /wp-login.php?action=logout” title=”<?php _e(‘Log out of this
account’,’benevolence’) ?>”><?php _e(‘Logout’,’benevolence’) ?> »</p>
<?php else : ?>
<p><input type=”text” name=”author” id=”author” value=”<?php echo $comment_author; ?>” size=”22″ tabindex=”1″ />
<label for=”author”><small><?php _e(‘<– Dein Name’,’benevolence’); ?> <?php if ($req) _e(‘(required)’,’benevolence’); ?></small></label></p><?php endif; ?>
<p>
<label for=”comment”><?php _e(‘Hier schreiben:’,’benevolence’); ?></label><textarea name=”comment” style=”border: 1px solid #000;” id=”comment” cols=”50″ rows=”6″ tabindex=”4″></textarea>
</p><p>
<input name=”submit” id=”submit” type=”submit” tabindex=”5″ value=”<?php _e(‘Klicke hier zum Senden’,’benevolence’); ?>” />
<input type=”hidden” name=”comment_post_ID” value=”<?php echo $id; ?>” />
</p>
<?php do_action(‘comment_form’, $post->ID); ?>
</form><?php if ( comments_open() ) : ?>
<b><?php comments_number(__(‘No Comments’,’benevolence’), __(‘1 Comment’,’benevolence’), __(‘% Comments’,’benevolence’)); ?> <?php_e(‘so far’,’benevolence’); ?></b>
<?php else : // If there are no comments yet ?>
<?php endif; ?><?php if ( $comments ) : ?>
<div class=”commentlist”>
<?php foreach ($comments as $comment) : ?>
<div class=”commentBox”>
<?php comment_text() ?>
<i><?php comment_type(__(”,’benevolence’), __(”,’benevolence’), __(”,’benevolence’)); ?> <?php _e(”,’benevolence’); ?> <?php if(function_exists(‘avatar_display_comments’)){ avatar_display_comments(get_comment_author_email(),’48’,”); } ?>
<?php comment_author_link() ?>
<?php comment_date(__(‘m.d.y’,’benevolence’)); ?> @ “><?php comment_time() ?><?php edit_comment_link(__(‘Edit This’,’benevolence’), ‘ |’); ?></i>
</div><?php endforeach; ?>
</div>
<?php else : // If there are no comments yet ?>
<?php endif; ?>
<div class=”right”><?php comments_rss_link(__(‘<abbr title=”Really Simple Syndication”>RSS</abbr> feed for comments on this
post.’,’benevolence’)); ?>
<?php if ( pings_open() ) : ?>
” rel=”trackback”><?php _e(‘TrackBack’);?> <abbr title=”<?php _e(‘Uniform ResourceIdentifier’);?>”>URI</abbr>
<?php endif; ?>
</div><?php else : // Comments are closed ?>
<?php endif; ?>
- The topic ‘I want to change the order of the comments’ is closed to new replies.