Web Hosting
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix Reply To: Post page: next and previous link from same category

Discussion in 'Misc WordPress Requests' started by santtumarika, Nov 17, 2017.

  1. santtumarika

    Guest

    Reply To: Post page: next and previous link from same category, by santtumarika

    Hi! I did change to link-template.php in_same_term to be true (code below) but still its not working. Did i do it wrong?

    function get_previous_post( $in_same_term = true, $excluded_terms = ”, $taxonomy = ‘category’ ) {
    return get_adjacent_post( $in_same_term, $excluded_terms, true, $taxonomy );
    }

    function get_next_post( $in_same_term = true, $excluded_terms = ”, $taxonomy = ‘category’ ) {
    return get_adjacent_post( $in_same_term, $excluded_terms, true, $taxonomy );
    }

    Reply To: Post page: next and previous link from same category
     
    #1

Share This Page

Web Hosting