How do I modify the Previous and Next Page posts on blog pages to include "previous" and "next" before the links?

I want to add “previous” and”next” to the individual blogs since they only have the blog titles for the next and previous links. I want to keep the links and I am having a hard time using any of the solutions provided to me and they seem to make the page worse. Am I coding the information incorrectly or am I deleting important PHP that needs to stay?

This is the problem I am dealing with:

wp_link_pages( array( 'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'thermal-tech' ),
            'after'  => '</div>', ) ); 

Read more here: How do I modify the Previous and Next Page posts on blog pages to include "previous" and "next" before the links?

Leave a Reply

Your email address will not be published. Required fields are marked *