I'm having some trouble with syntax when excluding a category from the prev/next nav on single posts. I have it working but not fully how I want it to be.
For the next link, it's working 100%: showing the linked post title and an arrow. For the previous link, it's showing a linked arrow but the title is missing. I'm not quite sure where to insert category 7 in the previous post code in order to get it working properly. I've tried a few different spots but i keep breaking the page and getting errors...
This is how I have it now...
<?php previous_post_link( '<div class="nav-previous">%link</div>', '<span class="meta-nav">' . _x( '←', 'Previous post link', 'formationpro' ), '7' . '</span> %title' ); ?>
<?php next_post_link( '<div class="nav-next">%link</div>', '%title <span class="meta-nav">' . _x( '→', 'Next post link', 'formationpro' ), '7' . '</span>' ); ?>
... what do i need to do to make the previous_post_link work properly and show the title?
Thanks in advance for your help.
Kellie