Search Results

If your search results use the same loop as your home page, your visitors will see the full text of your posts and pages in the list of results. That might be a lot of text! Instead, consider using the_excerpt().

Pages don't have excerpts, so this will require a little setup. Remember that posts and pages share the same database table, which means they really have all the same fields, even if you don't see them in the edit screens. The PJW Page Excerpt plugin adds the excerpt box to the Page ^ Edit screen. With this in place, you can write brief summaries of your pages for the search results list.

In your search.php file, replace the_content() with the_excerpt(). You should see a much shorter, more user-friendly search results page.

Was this article helpful?

0 0
Search Engine Traffic Tactics

Search Engine Traffic Tactics

Within this guide you will learn such tactics as the following Domain age, Regular upgrade, Write for your visitors, Press releases, Flash, Meta tags, Heading tag, Site map, Keywords, External links, Business address, Article distribution, Images, Multiple domains, Link exchange and so much more.

Get My Free Ebook


Post a comment