- Navigate to the WordPress plugin directory of your development installation.
- Navigate to the ch8-bug-tracker directory and edit ch8-bug-tracker.php.
- Locate the ch8bt_shortcode_list function and find the section where the SQL query is being prepared.
- Add an extra line to the query (the highlighted line of code in the following code block) to show only open bugs (bugs with a bug_status field set to 0):
$bug_query = 'select * from ' . $wpdb->get_blog_prefix(); $bug_query .= 'ch8_bug_data '; $bug_query .= 'where bug_status = 0 ';
- Make the change highlighted in the following code to the code building the search query:
if ( $search_mode ) { $search_term = '%' . $search_string . '%'; $bug_query .= "and ( bug_title like '%s' ...