Support » Plugin: Ajax Search Lite » Show entire content

  • Resolved faycalboutam



    Can I show the entire content in the search results? I can edit the plugin files if needed, just need to know where to check. Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author wpdreams



    Your best bet is to use a custom code to parse the full post content and replace it in the results list.

    Try adding this custom code to the functions.php in your theme/child theme directory (copy from line 3 only!). Before editing, please make sure to have a full site back-up just in case!

    add_filter('asl_results', 'asl_full_content_in_results', 10, 4);
    function asl_full_content_in_results($results, $id, $is_ajax, $args) {  
      foreach ($results as $k=>&$r) {
        $r->content = apply_filters('the_content', get_post_field('post_content', $r->id));
      return $results;

    This should do the trick.

    Best regards,
    Ernest M.

    Thanks Ernest!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Show entire content’ is closed to new replies.