Created
December 14, 2017 13:37
-
-
Save YurePereira/806c6392332e19bd2a9501a2d8147763 to your computer and use it in GitHub Desktop.
Get the previous and next posts in WordPress
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $prevPost = get_adjacent_post(false, '', true); | |
| $nextPost = get_adjacent_post(false, '', false); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment