[wp-hackers] Question about use of while in 2010 loop-page and loop-single
gxxaxx at gmail.com
Thu Sep 15 03:16:31 UTC 2011
On Wed, Sep 14, 2011 at 7:42 PM, Michael D Adams <mda at blogwaffe.com> wrote:
> On Wed, Sep 14, 2011 at 5:51 PM, Claude Needham <gxxaxx at gmail.com> wrote:
> I think what you're asking is "Why use while when we know there can
> only be one post on this view?".
> I've seen plugins that hack the query to output multiple posts on
> single/page views, so using while in a single/page template is a
> little more flexible for people doing crazy things.
> Also, always doing it the same way (which Twenty Ten doesn't) can
> improve readability/reuse.
Thanks for all the answers from everyone. They are helpful.
More information about the wp-hackers