Next/Prev_post_link doesn’t exclude more than 1 cat
-
This is the code I’ve placed within the loop:
<div id=”postnav”>
<p class=”prevpost”>
<?php previous_post_link(‘« %link’,’Last’, FALSE, ‘1 and 6 and 25 and 28’); ?><p class=”nextpost”>
<?php next_post_link(‘%link »’, ‘Next’, FALSE, ‘1’); ?></div>
I want to exclude categories 1, 6, 25, and 28 for both the previous and next links. Given the code above, the next link excludes posts from cat 1, the link for prev cat doesn’t exclude anything. Why? (I excluded cat 1 in the next link in the code above for demonstration purpose only, that is, to show that one excluded category works, but trying to exclude multiple cats doesn’t.)
‘Preciate any help, thanks -Lee
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Next/Prev_post_link doesn’t exclude more than 1 cat’ is closed to new replies.