Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Forum: Themes and Templates
    In reply to: Comment link
    Thread Starter zolyman

    (@zolyman)

    Thank you!

    It works with <?php echo get_permalink($comment->comment_post_ID).'#comment-'.$comment->comment_ID ?> at href.

    Forum: Themes and Templates
    In reply to: Comment link
    Thread Starter zolyman

    (@zolyman)

    I tried this:

    <?php 	$comments = get_comments('status=approve&number=5'); ?>
    <div class="recentcomm">
    <ul>
    	<?php foreach ($comments as $comment) { ?>
    		<li>
    			<div style="margin:0 10px 0 0;float:left;"><?php echo get_avatar( $comment, '35' ); ?></div>
    			<?php echo strip_tags($comment->comment_author); ?>: <a style="margin: 0 0 5px 0;" href="<?php echo get_permalink($comment->ID) . '#comment-' . $comment->comment_ID; ?>"><?php echo wp_html_excerpt( $comment->comment_content, 45 ); ?>... </a>
    		</li><div style="clear:both;margin:0 0 5px 0;"></div>
    	<?php }  ?>
    </ul>
    </div>

    Still not working. Any ideas? Please, help me!

    Forum: Themes and Templates
    In reply to: Comment link
    Thread Starter zolyman

    (@zolyman)

    I tried already. It’s not working.

Viewing 3 replies - 1 through 3 (of 3 total)