Next/Previous Links (3 posts)

  1. Scooby
    Posted 8 years ago #

    I've been looking around for a way to exclude certain categories from my next and previous links, and this is what I found:

    <?php next_post_link('%link &raquo;', 'Next: (%title)', FALSE, '3, 4'); ?>

    It just doesn't seem to be working for me.. Is it written out properly for the new version (WP2.5). Or maybe it's actually working, but it's just doing something that Im not expecting. I expect it would remove categores 3 and 4 from those links entirely.. Am I right??

  2. Austin Matzko
    Posted 8 years ago #

    I think you want
    <?php next_post_link('%link &raquo;', 'Next: (%title)', FALSE, '3 and 4'); ?>

  3. corpodibacco
    Posted 8 years ago #

    same problem here. It doesn't work even if you want to exclude only ONE category. Check my thread: http://wordpress.org/support/topic/165254?replies=1#post-720398

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.