Function Reference/get adjacent post rel link
Description
Get adjacent post relational link.
Can either be next or previous post relational link.
Usage
<?php get_adjacent_post_rel_link( $title, $in_same_cat, $excluded_categories, $previous ); ?>
Parameters
- $title
- (string) (optional) Optional. Link title format.
- Default: %title
- $in_same_cat
- (boolean) (optional) Optional. Whether link should be in same category.
- Default: false
- $excluded_categories
- (string) (optional) Optional. Excluded categories IDs.
- Default: empty string
- $previous
- (boolean) (optional) Optional, default is true. Whether display link to previous post.
- Default: 1
Return Values
- (string)
-
Change Log
Since: 2.8
Source File
get_adjacent_post_rel_link() is located in wp-includes/link-template.php