function search_attachments_by_filename($where, $query) {
global $wpdb;
if ($query->is_search() && !is_admin()) {
$search_term = $query->get(‘s’);
$where .= ” OR ({$wpdb->posts}.post_type = ‘attachment’ AND {$wpdb->posts}.post_title LIKE ‘%” . esc_sql($search_term) . “%’)”;
}
return $where;
}
add_filter(‘posts_where’, ‘search_attachments_by_filename’, 10, 2);
DIVISION MEMORANDA
GET IN TOUCH WITH US
OFFICE OF THE SCHOOLS DIVISION SUPERINTENDENT
Telephone No.: 889 0995 Email: camiguin@deped.gov.ph Facebook Page: Facebook Tayo Camiguin
PUBLIC ASSISTANCE CENTER Hotline: 0999-999-8623 Email: pac.sdocamiguin@deped.gov.ph
FUNCTIONAL DIVISION
Office of the Schools Division Superintendent (OSDS)
Schools Governance and Operations Division (SGOD)
Curriculum and Instruction Division (CID)
- Department of Education - Division of Camiguin
- Government Center, Lakas 9100, Mambajao, Camiguin
- camiguin@deped.gov.ph
- Data Center - Web Development Team
- camiguin@deped.gov.ph
- Copyright © 2022-2023 : Taga Isla
