[wp-trac] [WordPress Trac] #34474: sql error with wp_query and posts_per_page param

WordPress Trac noreply at wordpress.org
Wed Oct 28 16:09:47 UTC 2015


#34474: sql error with wp_query and posts_per_page param
--------------------------+----------------------
 Reporter:  nicmare       |       Owner:
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  Query         |     Version:  4.3.1
 Severity:  normal        |  Resolution:  invalid
 Keywords:                |     Focuses:
--------------------------+----------------------

Comment (by nicmare):

 Alright. Thanks boonebgorges. this solves the issue. but just to let you
 know… i read your codex and used that snippet
 https://codex.wordpress.org/Function_Reference/query_posts#Preserving_Existing_Query_Parameters
 so i merged my $args with the existing one on an archive page. therefore
 the query is that big (i just added meta_query and posts_per_page)

--
Ticket URL: <https://core.trac.wordpress.org/ticket/34474#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list