next_post [ WordPress Function ]
next_post ( $format = '%', $next = 'next post: ', $title = 'yes', $in_same_cat = 'no', $limitnext = 1, $excluded_categories = '' )
| Parameters: |
|
| See: | |
| Defined at: |
|
Prints link to the next post.
Source
<?php
function next_post($format='%', $next='next post: ', $title='yes', $in_same_cat='no', $limitnext=1, $excluded_categories='') {
_deprecated_function( __FUNCTION__, '2.0', 'next_post_link()' );
if ( empty($in_same_cat) || 'no' == $in_same_cat )
$in_same_cat = false;
else
$in_same_cat = true;
$post = get_next_post($in_same_cat, $excluded_categories);
if ( !$post )
return;
$string = '<a href="'.get_permalink($post->ID).'">'.$next;
if ( 'yes' == $title )
$string .= apply_filters('the_title', $post->post_title, $post->ID);
$string .= '</a>';
$format = str_replace('%', $string, $format);
echo $format;
}
?>
Examples [ wp-snippets.com ]
Google Arama Sonuçlarý
- Function Reference/next post « WordPress Codex
Used on single post/permalink pages, this tag lists the next post in chronological order from the current post. It can work in conjuntion with the previous_post() ...
codex.wordpress.org - Function Reference/next post link « WordPress Codex
Description. Used on single post permalink pages, this template tag displays a link to the next post which exists in chronological order from the current post.
codex.wordpress.org - WordPress › Support » Tags — next_post
Password (forgot?) Register · WordPress › Support » next_post ...
wordpress.org - Life Without Lugar: Democrats See An Opportunity In Indiana : It's All ...
May 9, 2012 ... It's All Politics. It's All Politics banner · < previous post next post > .... previous post next post > · Special Series: Election 2012 · Presidential ...
www.npr.org
Kullanýcý Tartýþmalarý [ wordpress.org ]
- Rockwell_77 on "[Plugin: upPrev Previous Post Animated Notification] Upnext? Link to next post"
- JamesICT on "Adding a class WITHIN the previous_post function"
- alchymyth on "Adding a class WITHIN the previous_post function"
- JamesICT on "Adding a class WITHIN the previous_post function"
- alchymyth on "Adding a class WITHIN the previous_post function"
- JamesICT on "Adding a class WITHIN the previous_post function"
- Dummbatz on "Previous / Next Post navigation by Author"
- Dummbatz on "Previous / Next Post navigation by Author"
- Dummbatz on "Previous / Next Post navigation by Author"
- eggroup on "How to use thumbnails with next_post_link?"