Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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

2 Answers 2

up vote 4 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

 
discard

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.