• I’d like my previous_post and next_post links to NOT show posts from a certain category. The category has ID number 3 so I implemented this code:
    `<?php previous_post(‘% | ‘,’Previous post: ‘,’yes’,’yes’,’1′,’3′); ?>
    which is what you should do according to The WP Wiki for previous_post, however it still shows posts from that category along with all the other categories. Am I doing it right?
    Using WP 1.2 by the way.

Viewing 1 replies (of 1 total)
  • The reason it doesn’t work is because the function relies on the deprecated $post->$post_category call. The post_category name has been dumped in favor of that table (I forget the name) that allows multiple categories per post. Therefore, the next_post and previous_post functions are totally broken in 1.2 with regards to categories. I’m workin on a fix, but I suck at PHP so……

Viewing 1 replies (of 1 total)
  • The topic ‘previous_post and next_post problems’ is closed to new replies.