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.

I have "About us" content in a single static wp page and want to show a part of it in the front page with a read more... link. I want to make index.php like this:

-Navigation-

-About Us - -Some part of About us page content-

-Latest News- -The loop for latest news-

How can I do the 'about us' part? Thanks

share|improve this question
add comment

1 Answer

up vote 0 down vote accepted

You would use get_pages function or create custom query using WP_Query class. The codex pages have detailed descriptions of parameters for both functions.

If this is a theme that you want to release for broader public you would probably want to create a theme options page where user sets the page that he wants to display. If it's you custom theme where you know the ID of 'About' page then you can skip the theme options part and use the page ID in either get_pages or WP_Query method.

share|improve this answer
add comment

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.