Search Function

Support Area Forums Kerygma Search Function

Tagged: ,

Viewing 3 posts - 1 through 3 (of 3 total)
URL to the page in question: http://texaswarrantroundup.com
  • Author
    Posts
  • #34955
    Michael Cloud
    Participant

    Is it possible for search results to show the entire post in the search results?

    Also is it possible to set theme so that search considers post tags?

    #34960
    Bill Robbins
    Moderator

    Good questions. WordPress’ built in search is not too spectacular. You may find it helpful to augment it with a plugin like Search Everything (https://wordpress.org/plugins/search-everything/). It’s not a plugin I’ve used personally, but it does have a large installed base and good ratings so it may be a good starting point. I have used SearchWP (https://searchwp.com/) and it’s good though not free.


    You can switch to showing the full post content instead of the excerpt in your search results. Here’s how:

    1. Go to the Appearance section in your WordPress dashboard and choose Edit.
    2. From the list of files on your right, choose search.php
    3. Find this line (line 15):
      
      <?php the_excerpt(); ?>
      

      and change it to this:

      
      <?php the_content(); ?>
      
    4. Save your changes.

    That should swap out the excerpt for the full content. This may make search results rather long so just be aware of that possibility.

    Take care,
    Bill

    #34962
    Michael Cloud
    Participant

    Awesome. Worked great!

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Search Function’ is closed to new replies.