Replies: 0
Hi,
Before last update, I added a personal shortcode in my functions.php file in order to filter not by title, but by slug (postname), which gave smth like this (thus, titles are like “surname Name” whereas postnames are like name-surname):
add_shortcode( ‘sf_a_z_listing’, ‘sf_a_z_listing_func’ );
function sf_a_z_listing_func($atts){
$a = shortcode_atts( array(
‘category_name’ => ”,
‘post_type’ => ‘page’,
‘category__not_in’ => ”,
‘orderby’ => ‘postname’
), $atts, ‘sf_a_z_listing’ );
$cat_exclude = explode(‘,’,$a[‘category__not_in’]);
$a[‘category__not_in’] = array_map(‘trim’, $cat_exclude);
return the_a_z_listing( $a );
}
It seems now that we cannot not override the query…
Any idea on how to do it again?
Thx!