I want to use something like
So using something like
var previous = "<?php previous_post_link( '%link','',TRUE ); ?>";
<a href="http://www.website.com/photo/1085" rel="prev"></a>
but instead I only want the path output in that variable.
I like this function because it allows you to remain in category so I am hoping for a solution where I still can easily have that as an option.