Rename “Next” & “Previous” pagination text links in a blog archive
Use the following PHP code snippet to rename the Next
and Previous
pagination text links in your blog archive:
add_filter( 'generate_next_link_text', function() { return 'Next'; } ); add_filter( 'generate_previous_link_text', function() { return 'Previous'; } );
Just change Next
and Previous
text to whatever you want.
I was so excited to find this, but unfortunately, it didn’t work for me.
I just tested it and it works for me. You need to enter the code inside your functions.php file. Also, do you use the default blog layout or a content template?