çok fazla yorumlar birikti ve site aşagı dogru kayıyo
bunun için yorumları sayfalandırmak istiyorum ama yapamadım
1 -2 eklenti denedim olmadı.
Eklenti veya kod anlatımı ile gösterecek varmı arkadaşlar..?
WordPress Yorumları Sayfalandırma
8
●359
- 24-09-2012, 18:07:37
- 24-09-2012, 18:35:38olmadı ne yazııki hocamErgün adlı üyeden alıntı: mesajı görüntüle
- 24-09-2012, 18:40:45temanizdaki comments.php icerisindeadminaktuel adlı üyeden alıntı: mesajı görüntüle
<?php wp_list_comments(); ?>
hemen altina sagidakileri temaniza uygun div ekleyerek istediginiz sekilde olur.
<?php paginate_comments_links(); ?>
<?php next_comments_link() ?>
- 24-09-2012, 18:59:06hocam yok bulamadım :S
<?php // Do not delete these lines if ('comments.php' == basename($_SERVER['SCRIPT_FILENAME'])) die ('Please do not load this page directly. Thanks!'); if (!empty($post->post_password)) { // if there's a password if ($_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password) { // and it doesn't match the cookie ?> <h2><?php _e("This post is password protected. Enter the password to view comments."); ?></h2> <?php return; } } $commentalt = '-alt'; $commentcount = 1; ?> <div id="comments-template"> <?php if ( $comments ) : ?> <h6 id="comments"><?php comments_number('Yorum Yok', '1 Yorum Var', '% Yorum Var' );?></h6> <? // Begin Comments ?> <?php foreach ($comments as $comment) : ?> <? if ($comment->comment_type != "trackback" && $comment->comment_type != "pingback" && !ereg("<pingback />", $comment->comment_content) && !ereg("<trackback />", $comment->comment_content)) { ?> <div class="comment-list" id="comment-<?php comment_ID() ?>"> <div class="comment-block<?php echo $commentalt; ?>"> <div class="comment-author"><?php comment_author(); ?> dediki ;</div> <div class="comment-date"><?php comment_date('F jS, Y') ?> <?php comment_time() ?> <?php edit_comment_link('edit','',''); ?></div> <div class="comment-text"> <?php if ($comment->comment_approved == '0') : ?> <strong>Yorumunuz Site Yöneticileri Tarafından Denetlemeye Alındı. </strong> <?php else: ?> <?php comment_text(); ?> <?php endif; ?> </div> </div> </div> <?php ($commentalt == "-alt")?$commentalt="":$commentalt="-alt"; $commentcount++; ?> <? } ?> <?php endforeach; /* end for each comment */ ?> <? // Begin Trackbacks ?> <?php foreach ($comments as $comment) : ?> <? if ($comment->comment_type == "trackback" || $comment->comment_type == "pingback" || ereg("<pingback />", $comment->comment_content) || ereg("<trackback />", $comment->comment_content)) { ?> <? if (!$runonce) { $runonce = true; ?> <h5><a href="<?php trackback_url() ?>">Pingback & Trackback</a></h5> <? } ?> <div class="comment-list" id="comment-<?php comment_ID() ?>"> <div class="comment-block<?php echo $commentalt; ?>"> <div class="comment-author">Pingback url <?php comment_author_link(); ?></div> <div class="comment-date"><?php comment_date('F jS, Y') ?> <a href="#comment-<?php comment_ID() ?>"> <?php comment_time() ?></a> <?php edit_comment_link('edit','',''); ?></div> </div> </div> <?php ($commentalt == "-alt")?$commentalt="":$commentalt="-alt"; $commentcount++; ?> <? } ?> <?php endforeach; /* end for each comment */ ?> <? if ($runonce) { ?> <? } ?> <? // End Trackbacks ?> <?php endif; ?> <? // End Comments ?> <?php if ('open' == $post->comment_status) : ?> <?php if (get_option('comment_registration') && !$user_ID) : ?> <h2>Comments are closed.</h2> <?php else : ?> <h6 id="comments">Yorum Yaparmısınız :</h6> <form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="comment-form"> <?php if (!$user_ID) : ?> <p><input name="author" type="text" class="comment-box" value="<?php echo $comment_author; ?>"/><label>İsminiz (zorunlu)</label></p> <p><input name="email" type="text" class="comment-box" value="<?php echo $comment_author_email; ?>"/><label>Mail (zorunlu)(Gizli Kalıcak) </label></p> <?php endif; ?> <p><textarea name="comment" id="comment" cols="58" rows="10" tabindex="4"></textarea></p> <p><input name="sbm" type="submit" value="Yorum Gönder" class="comment-submit"/><input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" /> </p> </form> <?php endif; // If registration required and not logged in ?> <?php endif; // if you delete this the sky will fall on your head ?> </div> - 24-09-2012, 19:56:15
<?php paginate_comments_links(); ?>
bu kodla oldu fakat yorumlar sayfalara ayrıklmadı ama sayfa oluştu..