Infinite next / prev post in single.php page

I think this is a better and cleaner approach of what you are trying to achive. // get_adjacent_post will return $post object $prev_post = get_adjacent_post(true,”,true); //Using get_the_post_thumbnail() to get featured image of previous post $prev_thumbnail = get_the_post_thumbnail( $prev_post->ID, array( 100, 100)); $next_post = get_adjacent_post(true,”,false); //Using get_the_post_thumbnail() to get featured image of next post $next_thumbnail = … Read more

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