WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can I link to the posts page that has been set in Settings > Reading?

This is for a premium theme so it can't just be the page's permalink.

share|improve this question
up vote 5 down vote accepted

WordPress Does it like this this.

echo get_permalink( get_option( 'page_for_posts' ) );
share|improve this answer
perfect- thank you – bryceadams Aug 25 '12 at 2:04

Well generally that is set to just your homepage? Or your blog index? I dont quite understand your question and what your trying to accomplish.

share|improve this answer
Yes generally it is the home page but there is an option in Settings > Reading to use a static page. There you select your home page to be whichever page you'd like and the 'posts page' to be another page. It's pretty basic to be honest – bryceadams Aug 25 '12 at 1:57

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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