I am building an event manager. One of the template files I have is events-single.php which displays single events. At the bottom of this I have next and previous events using
previous_post_link. The problem is that those functions proceed through the events in order of published date rather than event date. (I have a meta key
_fulldate setup on the CPT for this). When I was building events-archive.php file I overcame a similar problem by doing something like this
$query = new WP_Query( array ( 'post_type' => 'events', 'orderby' => 'meta_value', 'meta_key' => '_fulldate', 'order' => 'ASC') );
However when I try that on events-single.php it makes all the events display on the page.
Ultimatly I want events-single.php to behave like a single page but then allow me control over the query as above. Is this possible or will I have to do a second loop for the Previous and Next links