WordPress.org

Ready to get started?Download WordPress

Forums

Post Types Order
[resolved] Breaks previous&next post_link navigation ? (8 posts)

  1. davidinooo
    Member
    Posted 3 years ago #

    Hi, very nice plugin, but it completely breaks previous_post_link & next_post_link navigation when it is activated and post are re-ordered... there is some hack? or I miss something?
    thnks

  2. nsp-code
    Member
    Plugin Author

    Posted 3 years ago #

    This should work.
    Also which is the exact mean of 'completely breaks', do you receive an error?

  3. davidinooo
    Member
    Posted 3 years ago #

    No i've got no errors. When plugin is active i cannot detect (as i do when it's disabled) when i'm viewing first post (no prev link active) and when i'm viewing latest post (no next link active)... Links are always active... i think there is some collision with the get_adiacent_post value, have you got idea ?

    <span id="next">
    <?php next_post_link('%link', 'Previous'); ?>
    <?php if(!get_adjacent_post(false, '', false)) { echo '<span>Previous</span>'; }
    </span>

    <span id="prev">
    <?php previous_post_link('%link', 'Next'); ?>
    <?php if(!get_adjacent_post(false, '', true)) { echo '<span>Next</span>'; }
    </span>

  4. teamadesign
    Member
    Posted 3 years ago #

    This definitely breaks the next and previous post link functions. Exclude Categories is no longer passed to the function with this plugin working.

  5. nsp-code
    Member
    Plugin Author

    Posted 3 years ago #

    How will you send the category exclusion to WordPress queries? Obliviously there is not a standard and if you use a custom plugin for that, of course it might not work if it does not use the proper method of a term exclusion.
    The previous & next works, but it also depend on other plugins you use.

  6. DeeMo
    Member
    Posted 2 years ago #

    Me too: it's breaking my next prev link navigation. Same exact problem as davidinoo.
    First post still gets both links, so you end up jumping back and forth between first and second post.
    Thing is, I tested it with a clean twenty-ten theme, no other plugin installed..still breaks.

  7. tushardate
    Member
    Posted 2 years ago #

    I am having the same problem where the next_post_link function is broken. It says "resolved" on this issue. I am curious what the solution is.

  8. peachorama
    Member
    Posted 2 years ago #

    my previous / next link were also broken with this plugin. i installed Ambrosite Next/Previous Post Link Plus and it seems to work:
    http://wordpress.org/extend/plugins/ambrosite-nextprevious-post-link-plus/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic