This thread is resolved. Here is a description of the problem and solution.
Problem:
Filter taxonomy with taxonomy with first character - glossary, abc filter
Solution:
You can use the taxonomy view's filter hook "wpv_filter_taxonomy_query" with "terms_clauses" hook in order to filter the taxonomy term names with selected first character.
The only problem is that we want to filter another taxonomy instead of posts. we can't find how we will change the query in the following code
add_filter('wpv_filter_query', 'func_filter_by_title', 10, 2);
function func_filter_by_title($query, $setting) {
global $wpdb;
if($setting['view_id'] == 9999) {
if(isset($_GET['wpvalphabet']) and $_GET['wpvalphabet']!='' ){
$first_char = $_GET['wpvalphabet'];
$postids = $wpdb->get_col($wpdb->prepare("SELECT ID
FROM $wpdb->posts
WHERE SUBSTR($wpdb->posts.post_title,1,1) = %s
AND post_type = '".$query['post_type'][0]."'
AND post_status = 'publish'
ORDER BY $wpdb->posts.post_title",$first_char));
$query['post__in'] = $postids;
}
}
return $query;
}
If you do not know how to do it, please share problem URL and access details. I will try to check and fix it on your behalf.
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I have set the next reply to private which means only you and I have access to it.