Changeset 3845 for branches/plugin/bbp-includes/bbp-topic-template.php
- Timestamp:
- 04/15/2012 04:28:37 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/plugin/bbp-includes/bbp-topic-template.php
r3844 r3845 75 75 // Default arguments 76 76 $default = array( 77 78 // Narrow query down to bbPress topics 79 'post_type' => bbp_get_topic_post_type(), 80 81 // Forum ID 82 'post_parent' => bbp_is_single_forum() ? bbp_get_forum_id() : 'any', 83 84 // Make sure topic has some last activity time 85 'meta_key' => '_bbp_last_active_time', 86 87 // 'meta_value', 'author', 'date', 'title', 'modified', 'parent', rand', 88 'orderby' => 'meta_value', 89 90 // 'ASC', 'DESC' 91 'order' => 'DESC', 92 93 // Topics per page 94 'posts_per_page' => bbp_get_topics_per_page(), 95 96 // Page Number 97 'paged' => bbp_get_paged(), 98 99 // Topic Search 100 's' => !empty( $_REQUEST['ts'] ) ? $_REQUEST['ts'] : '', 101 102 // Ignore sticky topics? 103 'show_stickies' => bbp_is_single_forum() || bbp_is_topic_archive(), 104 105 // Maximum number of pages to show 106 'max_num_pages' => false, 107 108 // Post Status 109 'post_status' => $default_status, 77 'post_type' => bbp_get_topic_post_type(), // Narrow query down to bbPress topics 78 'post_parent' => bbp_is_single_forum() ? bbp_get_forum_id() : 'any', // Forum ID 79 'meta_key' => '_bbp_last_active_time', // Make sure topic has some last activity time 80 'orderby' => 'meta_value', // 'meta_value', 'author', 'date', 'title', 'modified', 'parent', rand', 81 'order' => 'DESC', // 'ASC', 'DESC' 82 'posts_per_page' => bbp_get_topics_per_page(), // Topics per page 83 'paged' => bbp_get_paged(), // Page Number 84 's' => !empty( $_REQUEST['ts'] ) ? $_REQUEST['ts'] : '', // Topic Search 85 'show_stickies' => bbp_is_single_forum() || bbp_is_topic_archive(), // Ignore sticky topics? 86 'max_num_pages' => false, // Maximum number of pages to show 87 'post_status' => $default_status, // Post Status 110 88 ); 111 89
Note: See TracChangeset
for help on using the changeset viewer.