Changes between Version 2 and Version 3 of Ticket #34475, comment 4
- Timestamp:
- 10/28/2015 05:10:07 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #34475, comment 4
v2 v3 9 9 <?php 10 10 function commenttest(){ 11 $commentstotal = count(get_comments('status=approve&post_id=76164')); 12 echo "commentstotal: ".$commentstotal."<br/>"; 11 13 $comments = get_comments('status=approve&number=5'); 12 14 $output = '<ul style="font-size:5px">'; … … 15 17 $output .= '<li style="font-size:10px;"> 16 18 <div style="float:left;margin-right:3px">'; 17 $output .= get_avatar( $comment, '35' ); 18 $output .= '</div>'; 19 $output .= $comment->comment_content; 19 $output .= get_avatar( $comment, '35' ); 20 $output .= '</div> 21 <em style="font-size:12px">'; 22 $output .= strip_tags($comment->comment_author); 23 $output .= '</em> (<a href="'; 24 $output .= get_option('home'); 25 $output .= '/?p='; 26 $output .= $comment->comment_post_ID; 27 $output .= '/#comment-'; 28 $output .= $comment->comment_ID; 29 $output .= '">link</a>)<br>'; 30 $output .= $comment->comment_content; 20 31 $output .= wp_html_excerpt( $comment->comment_content, 35 ); 21 32 $link = get_comment_link($comment->comment_ID, array('per_page'=>10)); 22 $output .= '...<br/> LINK: '.$link.'33 $output .= '...<br/> LINK: '.$link.' 23 34 <div style="clear:both;"></div> 24 35 </li>'; … … 34 45 Comment Notifier Plugin hasnt been updated in two years by the dev but i have checked through all the code and it is retrieving the correct comment ids which are being passed to get_comment_link then giving the incorrect page number in the output url. 35 46 47 The function above is run on the following page if this helps? 48 49 http://www.property118.com/cron-test/ 50 36 51 Thanks