New answers tagged

0

Shortened the code a little. /* * Add "title=" to previous_post_link and next_post_link */ add_filter('next_post_link', function($link) { $next_post = get_next_post(); $title = $next_post->post_title; $link = str_replace('href=', 'title="'.$title.'" href=', $link); return $link; }); add_filter('previous_post_link', function($link) { $...



Top 50 recent answers are included