Opened 18 years ago
Closed 16 years ago
#793 closed enhancement (fixed)
Order by date in search
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | 1.0.3 | Priority: | normal |
| Severity: | normal | Version: | 1.0.2 |
| Component: | Front-end | Keywords: | |
| Cc: |
Description
Allow searches to be re-ordered by date instead of relevance.
Change History (6)
Note: See
TracTickets for help on using
tickets.
I was playing with search the other day.
It was reasonably easy to change the search on the WordPress Plugins Directory to only show "relevant" topics (ignoring titles, recent, users,... and whatever other garbage we show) and to paginate the list.
http://wordpress.org/extend/plugins/search.php
Just a small plugin and a template tweak (running trunk or branches/0.8)
Plugin
function mod_bb_relevant_search( $query ) { if ( 'bb_relevant_search' == $query->query_id ) $query->query_vars['count'] = true; } add_action( 'bb_parse_query', 'mod_bb_relevant_search' );Template: