[theme-reviewers] Is query_posts strictly forbidden?

Chip Bennett chip at chipbennett.net
Tue Oct 29 16:23:17 UTC 2013


I think it should be, but it hasn't been added yet.

Mainly, because it leaves the opportunity to allow query_posts()
exceptionally, for well-justified edge/use cases.


On Tue, Oct 29, 2013 at 12:17 PM, Rohit Tripathi <rohitink at live.com> wrote:

> Hi Chip,
>
> Thanks for letting me know. I was reading your post here:
>
> http://make.wordpress.org/themes/2012/12/14/query_posts/
>
> If it is striclty forbidden, why wasn't it added to the Theme Check as
> required stopper?
>
> ------------------------------
> Date: Tue, 29 Oct 2013 12:11:51 -0400
> From: chip at chipbennett.net
> To: theme-reviewers at lists.wordpress.org
> Subject: Re: [theme-reviewers] Is query_posts strictly forbidden?
>
>
> Yes, query_posts() is strictly forbidden. Use a proper WP_Query call for
> secondary loops, or pre_get_posts to modify the main query.
>
>
> On Tue, Oct 29, 2013 at 12:05 PM, Rohit Tripathi <rohitink at live.com>wrote:
>
> Is the function query_posts () strictly forbidden or they can be used, if
> used as standalone independant of any other loops?
>
>
>
> _______________________________________________
> theme-reviewers mailing list
> theme-reviewers at lists.wordpress.org
> http://lists.wordpress.org/mailman/listinfo/theme-reviewers
>
>
>
> _______________________________________________ theme-reviewers mailing
> list theme-reviewers at lists.wordpress.org
> http://lists.wordpress.org/mailman/listinfo/theme-reviewers
>
> _______________________________________________
> theme-reviewers mailing list
> theme-reviewers at lists.wordpress.org
> http://lists.wordpress.org/mailman/listinfo/theme-reviewers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wordpress.org/pipermail/theme-reviewers/attachments/20131029/e583077d/attachment-0001.html>


More information about the theme-reviewers mailing list