• Anonymous User 319290

    (@anonymized-319290)


    I’ve created a very simple plugin that replaces my wordpress post permalinks with external links whenever a specific key value is set on that particular post.

    The filter I’m using is post_link.

    Everything works exactly as I expect it to, except the previous_post_link() and next_post_link() values aren’t updated to reflect the external link.

    If I read the codex correctly, these functions should be affected by the post_link filter. What am I missing here?

Viewing 1 replies (of 1 total)
  • I’d like to see the code you’re working on, since I don’t want the previous_post_link() and next_post_link() values to be affected. I’m also having an issue where my Edit Post link is being 404d when I use the post_link filter.

Viewing 1 replies (of 1 total)

The topic ‘post_link filter not affecting previous_post_link()’ is closed to new replies.