I've got a previous/next navigational area that goes on each of my clients' blog posts but as for now, it seems to go back and forth to each post no matter what category it is in. I want it where the previous/next links only work for the category the post is in. Not every post. How do I do that? Here's the code I'm currently using for the Previous Post link:
<?php previous_post_link('%link', '<img src="http://www.wingmanmedia.com/2010/wp-content/themes/wingman/images/clients/previous.png" alt="Previous" />') ?>
have you read the docu for previous_post_link ?
http://codex.wordpress.org/Function_Reference/previous_post_link
particular the usage of the 'in_same_cat' parameter?
I tried that already and all that happened was I got was the $in_same_cat text onto my page as if it was HTML. Obviously, not good. Maybe I coded it wrong? Here's what I did:
<?php previous_post_link('%link, $in_same_cat = true', '<img src="http://www.wingmanmedia.com/2010/wp-content/themes/wingman/images/clients/previous.png" alt="Previous" />') ?>
try:
<?php previous_post_link('%link', '<img src="http://www.wingmanmedia.com/2010/wp-content/themes/wingman/images/clients/previous.png" alt="Previous" />', TRUE ) ?>
Yea, that seems to work. Thanks.