Totally WHOA! ??
I found it! Codex I love ya!
The function is:
Reference/get next post
Description: Retrieve next post that is adjacent to current post.
Usage: <?php get_next_post( $in_same_cat, $excluded_categories ) ?>
Parameters:
$in_same_cat
(boolean) (optional) Whether post should be in same category.
Default: false
$excluded_categories
(string) (optional) Excluded categories IDs.
Default: ”
Soooooooooooooooo As get_next_post()
is located in wp-includes/link-template.php I opened and at line 1084 and changed $in_same_cat = true
to $in_same_cat = false
The thing looks now like:
function get_next_post($in_same_cat = true, $excluded_categories = '') {
return get_adjacent_post($in_same_cat, $excluded_categories, false);
OMG I’m so proud of me ;o)