get_next_comments_link [ WordPress Function ]
get_next_comments_link ( $label = '', $max_page = 0 )
| Parameters: |
|
| Returns: |
|
| Defined at: |
|
Benzer Fonksiyonlar: next_comments_link, get_edit_comment_link, get_comments_link, get_comment_link, get_next_posts_link
Return the link to next comments page.
Source
<?php
function get_next_comments_link( $label = '', $max_page = 0 ) {
global $wp_query;
if ( !is_singular() || !get_option('page_comments') )
return;
$page = get_query_var('cpage');
$nextpage = intval($page) + 1;
if ( empty($max_page) )
$max_page = $wp_query->max_num_comment_pages;
if ( empty($max_page) )
$max_page = get_comment_pages_count();
if ( $nextpage > $max_page )
return;
if ( empty($label) )
$label = __('Newer Comments »');
return '<a href="' . esc_url( get_comments_pagenum_link( $nextpage, $max_page ) ) . '" ' . apply_filters( 'next_comments_link_attributes', '' ) . '>'. preg_replace('/&([^#])(?![a-z]{1,8};)/i', '&$1', $label) .'</a>';
}
?>
Examples [ wp-snippets.com ]
Google Arama Sonuçlarý
- #20319 ($page value not being defaulted to 1 in the absence of ...
get_next_comments_link() generates incorrect comment pagination links on the first page when used alongside a user-made call to wp_list_comments().
core.trac.wordpress.org - WordPress › Support » [Plugin: WP-PageNavi] Where to put this ...
... if($comment){ $prev_link = get_previous_comments_link(__('Newer Entries »', THEME_NS)); $next_link = get_next_comments_link(__('« Older ...
wordpress.org - next_comments_link (WordPress Function) - WPSeek.com
Source. <?php function next_comments_link( $label = '', $max_page = 0 ) { echo get_next_comments_link( $label, $max_page ); } ?> ...
wpseek.com - next_comments_link() WordPress function reference, arguments ...
Source. function next_comments_link( $label = '', $max_page = 0 ) { echo get_next_comments_link( $label, $max_page ); } WP Trac · GitHub ...
queryposts.com