WordPress.org

Forums

The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Hard exclude of categories in next_post_link (1 post)

  1. Sean
    Member
    Posted 5 years ago #

    Hi, in single.php, I'm trying to exclude a category in next_post_link:

    <?php next_post_link('%link', '%title &rarr;', TRUE, '4'); ?>

    But this won't work if the category specified is a sibling category (ie is also in the same parent category as the current post). Is there any way to tell WordPress that exclude means exclude absolutely?

Topic Closed

This topic has been closed to new replies.

About this Topic