Support » Fixing WordPress » Private Post 'next_post_link' doesn't work

  • Hello guys,

    I am using some ‘Private’ posts as a client area, so the user must be subscribed (manually approved) to view the posts.

    The posts are marked as private and everything works as it should, except the next_post_link and prev_post_link. This must be because the posts are private.

    This is the code:
    <?php previous_post_link('%link', 'Next Page', TRUE); ?>

    the TRUE means that the posts must be in the same category, which they are.

    Any help on this much appreciated!


Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter alexborton


    I could really do with some help on this please guys!


    what is happening if you click one of the next/prev links?

    how are the link urls showing in the bottom of the browser?

    Thread Starter alexborton


    The links do not function at all (or even appear!) – they don’t even render into links. In normal circumstances they work perfectly.

    It seems like they just ignore any private posts from that particular navigation type, next_post_link or prev_post_link.


    I am having the same problem. These functions seem to skip right over private posts.



    I’m having the same issue

    has anyone a solution ?

    Having the same issue here. Much appreciated for a fix/solution.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Private Post 'next_post_link' doesn't work’ is closed to new replies.