Post Navigation for Use with Types & Views and URL Parameters

This code is an example of post navigation for use specifically with Types & Views. The post navigation works well in tandem with View’s parametric search forms, and can output next/previous post links based on URL parameters that indicate custom taxonomies and fields.

You can see this code in action at: http://dev.rocketdogrescue.org/adopt/adoptees/. Enter some search criteria and then click on an individual dog to check out the post navigation.