Next and/or previous post content
Take a look at the get_adjacent_post function. It takes three paramters, all of which are optional: a boolean, whether the post should be from the same category a string of category IDs that should be excluded a boolean, whether the previous (true) or next (false) post should be retrieved. Hence the previous post, regardless of … Read more