vimeotheque_get_previous_post( bool $in_same_term = false, int[]|string $excluded_terms = '' )
Retrieves the previous video post.
Description
Will get the previous post.
Parameters
- $in_same_term
-
(Optional) Whether post should be in a same taxonomy term.
Default value: false
- $excluded_terms
-
(Optional) Array or comma-separated list of excluded term IDs.
Default value: ''
Return
(\WP_Post|null|string) Post object if successful. Null if global $post is not set. Empty string if no corresponding post exists.
Source
File: includes/libs/templates/functions.php
function vimeotheque_get_previous_post( $in_same_term = false, $excluded_terms = '' ){ $post = get_adjacent_post( $in_same_term, $excluded_terms, true ); return $post; }