how to add a button for back in the blog page from single blog page in WordPress

I am looking to add a button in the single post page that will allow the reader to easily get back to the beginning of the blog or blog page blog archive page with one click. This tutorial I will show you how to add a button for back in the blog page from single blog page in WordPress. It is very easy way just follow our instruction. First you crate a page name BLOG then you assign to this page a blog page from Setting >> Reading option. Then open your single.php file & paste our below code where you want to show.

Back to Blog page button php code

<?php echo ‘<a href=”‘.esc_url( home_url( ‘/blog’ ) ).'”>’.esc_html__( ‘Blog’, ‘textdomain’ ).'</a>’; ?>

​Leave a Comment

Comment authors age:




How to create custom news ticker widget in wordpress

Why Security Cameras essential for Home and Company?