Modify the “Next” post navigation text

The code snippets below should be pasted into your child theme's functions.php file.

The post next pagination text is set to “Next” by default. Here is how to update the text to display to post title.

// Modify the "Next" post navigation text.
add_filter( 'beans_next_text_post_navigation_output', 'example_next_text_post_navigation' );

function example_next_text_post_navigation( $text ) {

 if ( $post = get_next_post() ) {
    $text = $post->post_title;

 return $text;


You may also use your own text instead of the post title. In that case, you may consider using the WordPress translate() function, if you need the string to be translatable.