adjacent_post_link
adjacent_post_link ( $format, $link, $in_same_term = false, $excluded_terms = '', $previous = true, $taxonomy = 'category' )
Parameters:- (string) format Link anchor format.
- (string) link Link permalink format.
- (bool) in_same_term Optional. Whether link should be in the same taxonomy term. Default false.
- (int[]|string) excluded_terms Optional. Array or comma-separated list of excluded category IDs. Default empty.
- (bool) previous Optional. Whether to display link to previous or next post. Default true.
- (string) taxonomy Optional. Taxonomy, if `$in_same_term` is true. Default 'category'.
Defined at: - Introduced in WordPress: 2.5.0
- Deprecated in WordPress: —
Description
Displays the adjacent post link.Can be either next post link or previous.