Changeset 4518
- Timestamp:
- 11/25/2012 07:35:43 AM (13 years ago)
- File:
-
- 1 edited
-
trunk/includes/common/template-tags.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/common/template-tags.php
r4512 r4518 1213 1213 * though you can have that as none (pass 'show_none' arg)) 1214 1214 * - sort_column: Sort by? Defaults to 'menu_order, post_title' 1215 * - child_of: Child of. Defaults to 01215 * - post_parent: Post parent. Defaults to 0 1216 1216 * - post_status: Which all post_statuses to find in? Can be an array 1217 1217 * or CSV of publish, category, closed, private, spam, … … 1253 1253 'selected' => 0, 1254 1254 'sort_column' => 'menu_order', 1255 'child_of' => '0', 1255 'post_parent' => 0, 1256 'exclude' => array(), 1256 1257 'numberposts' => -1, 1257 1258 'orderby' => 'menu_order', … … 1279 1280 } 1280 1281 1282 // Force array 1283 if ( !empty( $r['exclude'] ) && !is_array( $r['exclude'] ) ) { 1284 $r['exclude'] = explode( ',', $r['exclude'] ); 1285 } 1286 1281 1287 /** Post Status *******************************************************/ 1282 1288 … … 1315 1321 'post_status' => $r['post_status'], 1316 1322 'sort_column' => $r['sort_column'], 1317 'child_of' => $r['child_of'], 1323 'post_parent' => $r['post_parent'], 1324 'exclude' => $r['exclude'], 1318 1325 'numberposts' => $r['numberposts'], 1319 1326 'orderby' => $r['orderby'],
Note: See TracChangeset
for help on using the changeset viewer.