I am using this code:
<?php previous_post_link('%link','%title',FALSE,'3 and 61 and 44'); ?>
Category 44 is a child of category 61. If I only specify '3 and 61' then it does not exclude post links in children categories.
Although I now have a temporary work-around by adding 'and 44' this will not work long term if my client adds additional children categories.
I am a relative WP newbie, and brand new to PHP as well. Can anyone help me with some code to add to my functions.php page? I need something that will include children categories in the exclusion previous_post_link and next_post_link