Previous and Next Buttons for Posts

Hello - I am working in WordPress and am a beginner at PHP. In my post page template I have the following code:

[php]

  • <?php next_post_link('%link', ''); ?>
  • <?php if ($portfolio_page) { ?>
  • <?php } ?>
  • <?php previous_post_link('%link', ''); ?>
  • [/php]

    I know there is a way to exclude specific post categories but I have yet to find a piece of code I can add to make the exclusion work.

    Can someone help me figure out what code I need to use to get the exclusion to work properly.

    I don’t see that as one of the options:
    http://codex.wordpress.org/Template_Tags/next_post_link

    Excellent. I like you comment. It good to do that.

    Sponsor our Newsletter | Privacy Policy | Terms of Service