Changes between Initial Version and Version 1 of Ticket #22299, comment 3
- Timestamp:
- 10/28/2012 02:37:38 AM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #22299, comment 3
initial v1 1 You can add `$query->is_ home()` check there:1 You can add `$query->is_main_query() && $query->is_home()` check there: 2 2 {{{ 3 3 function hwl_home_pagesize( $query ) { 4 if ( $query->is_ home() )4 if ( $query->is_main_query() && $query->is_home() ) 5 5 $query->query_vars['posts_per_page'] = 1; 6 6 return;