Skip to content

Customizing Prev/Next Post Links #137

Discussion options

You must be logged in to vote

So, I would use this?

let target = post.next;
while (target.categories.data[0].name !== 'your_category' && target.next) {
  target = target.next;
}

Replies: 6 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by njzjz
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #137 on December 12, 2020 09:41.