Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Categories for Custom Type Posts › Reply To: Categories for Custom Type Posts
August 25, 2014 at 11:55 am
#2264
Keymaster
Hi!
Only by writing a filter code.
Put this to your theme functions.php file:
function asp_shorten_title( $title ) {
$length = 20;
$title= (strlen($title) > $length) ? substr($title,0,$length).'...' : $title;
return $title;
}
add_filter( 'asp_result_title_after_prostproc', 'asp_shorten_title' );
This will cut down the title to max 20 characters. You can change the number to anything you want.