The post has three categories: 12, 13, and 16. I want to use the next/previous links in each post to link to the next or previous post in category 12. So I wrote the following code:
<?php previous_post_link('« %link', 'Previous', TRUE, '13 and 16'); ?> <?php next_post_link('%link »', 'Next', TRUE, '13 and 16'); ?>
But when I go to the post after saving, I get links to the previous post which has category 13, and the next post which has category 16. (Neither has category 12 just to be clear.)
I am using Exec-PHP version 4.7 to be able to put php code in my post itself. Could this plug-in somehow be messing with the function, or am I perhaps missing syntax somewhere? Any help would be appreciated.