get_next_post Wordpress function


Description:

Retrieve next post that is adjacent to current post.


Syntax:


Arguments:

(bool) $in_same_cat Optional. Whether post should be in a same category.
(array|string) $excluded_categories Optional. Array or comma-separated list of excluded category IDs.


Return Type:

(mixed) Post object if successful. Null if global $post is not set. Empty string if no corresponding post exists.


Define At:

wp-includes/link-template.php


Wordpress Reference URL:

http://codex.wordpress.org/Function_Reference/get_next_post


0 Flares Facebook 0 Google+ 0 0 Flares ×
Posted in: Wordpress functions
0 Flares Facebook 0 Pin It Share 0 Google+ 0 0 Flares ×