I want to get next and previous posts based on a particular category slugs. For example, some posts might have the "sports" category while another has the "tech" category.
I was hoping to plug in a category slug into
get_adjacent_post but it doesn't appear that it's working. It looks like it just wants use the slug "category" or maybe custom taxonomies rather than slugs within the "category" taxonomy.
Here's an example of what I was trying to do:
$adj = get_adjacent_post(true, '', true, 'sports');