get_next_post options
-
When
$in_same_term = true
when using the
get_next_post
andget_previous_post
functions, and the current post has several parent categories and several child catgeories:– will the function pick the next/previous post only from the current posts parent categories or will it also consider child categories?
– if the post has several categories, let’s say: first, second and third category (both parent and child categories), will it choose a post from all 3 categories, or only from the first?
And if the current post has categories A and B, then will an other post that has the categories A and B have priority in the next/prev choice, even if its publish date falls further away than let’s say an other post, that has categories A and C?
And is there any difference in the choices of the functions in comparison, when using
get_next_post
&get_previous_post
,get_adjacent_post
andget_{$adjacent}_post_where
?
- The topic ‘get_next_post options’ is closed to new replies.