Hey, I have used this code so I could move the previous and next button up on the listing detail page and it was working. By that I mean when you searched a listing and clicked previous and next it would go to the next listing on the listing page.
Now when you click next/previous it goes to some random page and I don’t know why.
I have re-enabled the default previous/next button on the site and added a location filter but and the results were different but still seemingly random
Code as it is
<!--Need Previous/Next Code Here-->
<div>
<div class="post_nav">
<span class="next_post_link"><?php previous_post_link( '%link','Next Restaurant ⇨ ' ) ?></span>
<span class="previous_post_link"> <?php next_post_link( '%link','⇦ Previous Restaurant' ) ?></span>
</div>
</div>
<?php
remove_action('geodir_details_main_content', 'geodir_action_details_next_prev', 80);
?>
Readed Geodir Buttons
add_action('geodir_details_main_content', 'geodir_action_details_next_prev', 80);
add_filter( 'get_previous_post_where' , 11, 5 );
add_filter( 'get_next_post_where' , 11, 5 );