Timeline for Make `previous_post_link()` Function Show The Post After Next i.e. Jump A Post
Current License: CC BY-SA 4.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 11, 2020 at 20:51 | comment | added | pjk_ok | that still doesn't work. Although I am a bit confused about the line you added in the comment in terms of where that goes? Also just to let you know I'm only going to be using it on previous posts not next posts. I do really appreciate you trying to help by the way. | |
Aug 11, 2020 at 20:19 | comment | added | Nate Allen |
@TheChewy I updated the code so you can pass in the next post to reference. So you would do previous_previous_post_link($next_post) . That should work with the code you referenced. I just tested and it worked for me.
|
|
Aug 11, 2020 at 20:12 | history | edited | Nate Allen | CC BY-SA 4.0 |
Added ability to pass in previous/next post
|
Aug 11, 2020 at 19:43 | comment | added | pjk_ok | Hi @NateAllen this didn't work it still just goes to the next post ? I'm wondering of it's because of the code I'm also using on this post (from the answer marked as correct) wordpress.stackexchange.com/questions/372578/… | |
Aug 11, 2020 at 4:06 | history | answered | Nate Allen | CC BY-SA 4.0 |