get blog page url in WordPress

wordpress

Solution

You can use `get_option` of `page_for_posts` to get the page ID to either assign it to a variable or to echo it.

<?php echo get_permalink( get_option( 'page_for_posts' ) ); ?>

For more information of the default `get_option` visit: Option Reference

Problem

The blog page on my WordPress website is set to be a different page other than the home page. I want to get the link to this blog page from any other pages. How can I get blog page url?

Original source