Changeset 11554 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-photos/front-page.php
- Timestamp:
- 02/15/2022 12:41:23 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-photos/front-page.php
r11553 r11554 23 23 <?php 24 24 $placeholder_count = 0; 25 $query_total = $GLOBALS['wp_query']->post_count; 26 $min_grid_items = 12; 27 // Show placeholders to ensure front page has a minimum number of grid items. 28 if ( $query_total < $min_grid_items ) { 29 $placeholder_count = $min_grid_items - $query_total; 25 if ( ! is_paged() ) { 26 $query_total = $GLOBALS['wp_query']->post_count; 27 $min_grid_items = 12; 28 // Show placeholders to ensure front page has a minimum number of grid items. 29 if ( $query_total < $min_grid_items ) { 30 $placeholder_count = $min_grid_items - $query_total; 31 } 30 32 } 31 33
Note: See TracChangeset
for help on using the changeset viewer.