[wp-hackers] page + 2 loops of posts?
joelfisher at gmail.com
Fri Feb 27 17:31:54 GMT 2009
- 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.
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
> 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
> 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
> Jen Simmons
> Milkweed Media Design
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
More information about the wp-hackers