Hello. Thank you for contacting the Toolset support.
Yes, its possible but needs some custom programming and few steps needs to follow:
1)
Create a taxonomy namely "alphabets" and add A to Z as terms.
2)
Now create a taxonomy view listing "alphabets" taxonomy terms. The loop output section should look like this:
[wpv-layout-start]
[wpv-items-found]
<a href="[current_url]">All</a>
<!-- wpv-loop-start -->
<wpv-loop>
<a href="?wpvalphabet=[wpv-taxonomy-title]">[wpv-taxonomy-title]</a>
</wpv-loop>
<!-- wpv-loop-end -->
[/wpv-items-found]
[wpv-no-items-found]
<strong>[wpml-string context="wpv-views"]No items found[/wpml-string]</strong>
[/wpv-no-items-found]
[wpv-layout-end]
Add following code to your current themes funcitons.php file
add_shortcode( 'current_url', function(){
$request = $_SERVER['HTTP_HOST'].strtok($_SERVER["REQUEST_URI"],'?');
$protocol = '<em><u>hidden link</u></em>';
if ( isset($_SERVER['HTTPS']) ) {
$protocol = '<em><u>hidden link</u></em>';
}
return $protocol . $request;
} );
3)
Now create another view for which you want to display your posts:
-- Add following code to your loop output editor
[wpv-layout-start]
[wpv-view name="alphabet-terms"]
[wpv-items-found]
<!-- wpv-loop-start -->
<wpv-loop>
<h3>[wpv-post-link]</h3>
</wpv-loop>
<!-- wpv-loop-end -->
[/wpv-items-found]
[wpv-no-items-found]
<strong>[wpml-string context="wpv-views"]No items found[/wpml-string]</strong>
[/wpv-no-items-found]
[wpv-layout-end]
-- Add following code to your current theme's functions.php file:
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;
}
Where:
-- Replace '9999' with your original view ID (i.e. ID of view "view-show-posts-filter-by-title")
4)
Now, Create a new page and Add view "view-show-posts-filter-by-title" to display the view with results.
More info:
=> https://toolset.com/documentation/user-guides/filtering-views-by-taxonomy/