Ready to get started?Download WordPress


Private Post 'next_post_link' doesn't work (7 posts)

  1. alexborton
    Posted 3 years ago #

    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!


  2. alexborton
    Posted 3 years ago #

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


  3. alchymyth
    Forum Moderator
    Posted 3 years ago #

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

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

  4. alexborton
    Posted 3 years ago #

    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.


  5. publicradio
    Posted 3 years ago #

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

  6. weirdrubikscube
    Posted 3 years ago #

    I'm having the same issue

    has anyone a solution ?

  7. Mushie
    Posted 2 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic