[wp-hackers] page + 2 loops of posts?

Joel Fisher joelfisher at gmail.com
Fri Feb 27 17:31:54 GMT 2009


http://codex.wordpress.org/Template_Tags/query_posts

Specifically:

- page_id=7 - query for just Page ID 7
- pagename=about - note that this is not the page's title, but the page's path


Hope that helps.


joel.fisher
http://www.linkedin.com/in/jfisher
www.twitter.com/joelmoney




On Fri, Feb 27, 2009 at 12:28 PM, Jen Simmons <jensimmons at gmail.com> wrote:
> Hey all,
> I want to create a home page on a site with a main bit of text (something
> the client can edit as a page) with 2 loops of posts after it (in 2
> columns).
>
> I know how to create the loops... but I don't know how to write a php call
> in home.php to pull the content from a specific page-id. (In the past I just
> put a introduction like this in the html, and re-hack it to change it, but
> I'd like the client to be able to edit the content without going into
> home.php.
>
> I could just make one post in a fake category... and then put three loops of
> posts on the home page. But I'd rather have the intro set up as a page.
>
> Is there a <php> phrase I can use to pull the content from a page? What is
> it??
>
> thanks
> Jen
>
>
> Jen Simmons
> Milkweed Media Design
> http://milkweedmediadesign.com
>
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>


More information about the wp-hackers mailing list