[wp-hackers] Custom Page Template - can't see the forest through the trees

Ozh ozh at planetozh.com
Fri Apr 2 16:19:51 UTC 2010


> > I want to create a page template that is essentially the same as the 
main
> > index.php except that it will only shows posts from a single category. 
 I
> > can't get it to work correctly, the only thing I can do is get it to
> > display
> > the single most recent post from the category.

Can't you simply use a template page like category-{id}.php or 
taxonomy-{taxonomy}-{term}.php? See 
http://codex.wordpress.org/Template_Hierarchy for more

Ozh



More information about the wp-hackers mailing list