I made it just replace:
if ($where != ”) {
$where = str_replace($wpdb->posts.’.post_mime_type LIKE \’notimage/%\”, $wpdb->posts.’.post_mime_type NOT LIKE \’image/%\”,$where);
}
with this
function posts_where($where) {
global $wpdb;
if ($where != ”) {
$where1 = str_replace($wpdb->posts.’.post_mime_type LIKE \’notimage/%\”, $wpdb->posts.’.post_mime_type NOT LIKE \’image/%\”,$where);
/**
* Agregado por mi para filtrar videos GERMAN
*/
$where2 = “AND (wp_posts.post_mime_type NOT LIKE ‘video/%’)”;
$where = $where2++ . $where1;
}
return $where;
}