0

I am working on a theme that is using front-page.php as a front-page.php and home.php to show blog posts. What I can't figure out is how to link to the blog page that is displayed with home.php.

Obviously if I set a specific page to display blog posts in the readings page, I can link to that page, but that doesn't solve the problem. I need a way to link to the page that setting points to.

1 Answer 1

1

Ask the option page_for_posts:

get_permalink( get_option( 'page_for_posts' ) );

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.