grab neighboring content in a query

use get_adjacent_post(). if nothing is returned for next/prev, get the first/last.

Edit- just noticed your custom post type, you’ll also have to filter get_previous_post_where and get_next_post_where to pick up your cpt.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)