Reply To: Advanced Options – Content – Settings question

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Advanced Options – Content – Settings question Reply To: Advanced Options – Content – Settings question

#7681
Ernest Marcinko
Ernest Marcinko
Keymaster

Hi,

You cannot combine them to one field via the settings, it’s not possible. What you can do, is to create a custom filter, something like:


add_filter( 'asp_results', 'asp_merge_field_results', 1, 1 );
 
function asp_merge_field_results( $results ) {
  foreach ($results as $k=>$v) {
    $results[$k]->content  = $v->title . " " . $v->content;
  }
 
  return $results;
}

This code will for example combine the title and the content field into the content field. You can make and put these types of filters into your active theme folder, into the functions.php file.

Best,
Ernest Marcinko

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