Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter pablo_mu

    (@pablo_mu)

    typo!!!

    I meant:

    opened and at line 1084 and changed $in_same_cat = false to $in_same_cat = true

    false to true

    Thread Starter pablo_mu

    (@pablo_mu)

    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)

Viewing 2 replies - 1 through 2 (of 2 total)