• Resolved davidinooo

    (@davidinooo)


    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

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author nsp-code

    (@nsp-code)

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

    Thread Starter davidinooo

    (@davidinooo)

    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>

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

    Plugin Author nsp-code

    (@nsp-code)

    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.

    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.

    tushardate

    (@tushardate)

    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.

    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/

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Plugin: Post Types Order] Breaks previous&next post_link navigation ?’ is closed to new replies.