WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] Excluding categories from next_posts_link

[Resolved] Excluding categories from next_posts_link

  • Hi,

    I am trying to exclude posts from two categories from showing in my previous/next navigation links with the following code, but post in 8 and 62 still seem to be showing.
    `<div class=”navigation”>
    <div class=”next-posts”><?php next_posts_link(‘« Older Entries’, ‘%title’, FALSE, ‘8 and 62’) ?></div>
    <div class=”prev-posts”><?php previous_posts_link(‘« Older Entries’, ‘%title’, FALSE, ‘8 and 62’) ?></div>
    </div>`

    Can anyone see where I’m going wrong?

    Thanks,

    Jimmy

Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Resolved] Excluding categories from next_posts_link’ is closed to new replies.