Reply To: Skipping characters for summarytext

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Skipping characters for summarytext Reply To: Skipping characters for summarytext

#6925

Ernest Marcinko
Keymaster

Hi!

Only by using a custom code, but luckily you don't have to edit any of the plugin files, so this should be update-proof as well.

Try putting this code to your currently active theme folder, into the functions.php file:

add_filter( 'asp_result_content_after_prostproc', 'asp_cut_from_content', 1, 1 );

function asp_cut_from_content( $content ) {
  // Change this to the number of characters you want to cut
  $charaters_to_cut = 50;
  
  return substr($content, $charaters_to_cut);

}

Change the $characters_to_cut variable to the number of characters you want to remove from the beginning.

Best,
Ernest Marcinko

If you like my products, don't forget to rate them on codecanyon :)