• 02-07-2014, 17:21:07
    #1
    Wordpress yorumları aşağıdaki kod ile çekmekteyim ;
    <?php $comments = array_reverse($comments); ?>
    <?php if (have_comments()) : ?>
    	<ul class="yorumlistesi" id="singlecomments">
    	<div class="temizle"></div>
    		<?php wp_list_comments(array('avatar_size'=>45, 'reply_text'=>__('Cevapla &raquo;','arthemia'))); ?>
    		<div class="temizle"></div>
    	</ul>
    	<div class="navigation">
    		<div class="alignleft"><?php previous_comments_link(); ?></div>
    		<div class="alignright"><?php next_comments_link(); ?></div>
    	</div>
    <?php else : // this is displayed if there are no comments so far ?>
    <?php if ('open' == $post->comment_status) : ?>
    <!-- If comments are open, but there are no comments. -->
    <?php else : // comments are closed ?>
    <!--<p class="nocomments">Yoruma kapatılmıştır.</p>-->
    <?php endif; ?>
    bu kodlarla birkaç divler otomatik gelmekte. benim istediğim o divlere kendi classlarımı vermek. örneğin cevap ver butonunu en başa eklemek istiyorum ama div en altta geldiği için istediğimi yapamıyorum. bunu yapabilme şansım varmı ?
  • 02-07-2014, 18:52:38
    #2
    Tam kişiselleştirme için walker kullanman gerekir;
    -http://shinraholdings.com/621/custom-walker-to-extend-the-walker_comment-class/