_wp_link_page [ WordPress Function ]
_wp_link_page ( $i )
| Access: |
|
| Parameters: |
|
| Returns: |
|
| Defined at: |
|
Helper function for wp_link_pages().
Source
<?php
function _wp_link_page( $i ) {
global $post, $wp_rewrite;
if ( 1 == $i ) {
$url = get_permalink();
} else {
if ( '' == get_option('permalink_structure') || in_array($post->post_status, array('draft', 'pending')) )
$url = add_query_arg( 'page', $i, get_permalink() );
elseif ( 'page' == get_option('show_on_front') && get_option('page_on_front') == $post->ID )
$url = trailingslashit(get_permalink()) . user_trailingslashit("$wp_rewrite->pagination_base/" . $i, 'single_paged');
else
$url = trailingslashit(get_permalink()) . user_trailingslashit($i, 'single_paged');
}
return '<a href="' . esc_url( $url ) . '">';
}
?>
Examples [ wp-snippets.com ]
Google Arama Sonuçlarý
- _wp_link_page - PHP Cross Reference of WordPress Source - Yoast
Jun 1, 2011 ... Function and Method Cross Reference. _wp_link_page(). Defined at: /wp- includes/post-template.php -> line 674. Referenced 3 times: ...
xref.yoast.com - _wp_link_page (WordPress Function) - WPSeek.com
WordPress lookup for _wp_link_page, a WordPress Function. wpseek.com is a WordPress-centric search tool for developers and theme authors.
wpseek.com - PHPXRef 0.7 : WordPress : Function Reference: _wp_link_page()
Function and Method Cross Reference. _wp_link_page(). Defined at: /wp- includes/post-template.php -> line 685. Referenced 3 times: ...
phpxref.ftwr.co.uk - WordPress › Support » Tags — _wp_link_page
Forums. Username or Email Address Password (forgot?) Register · WordPress › Support » _wp_link_page. Tag: _wp_link_page Add New » ...
wordpress.org