Customize look of search results (6 posts)

  1. JSaeler
    Posted 10 years ago #

    Can anyone tell me how to customize the look of my search results page. I've tried a few Mods (Advanced Search for WordPress 1.5 plugin - for example), but can't seem to get them to integrate properly with my WP 1.5 Theme.

    Basically all i want is for the results page to display a title, short description and link to the full post instead of listing the full posts, which makes it difficult to find information quickly.

  2. moshu
    Posted 10 years ago #

    1. WP uses your index.php template to display the search results. See Template_Hierarchy#Search_Result_Page
    2. You can create a search.php template in your theme and, by using the proper Template_Tags (e.g. the_excerpt instead of the_content) you can achieve what you described above.

  3. Elorg
    Posted 10 years ago #

    Regarding Geo tags.
    Is it necessary (and how often) to update the GeoPlugin?

  4. Ovidiu
    Posted 10 years ago #

    My template uses a search.php but even if I modify that file the results don't change at all...

    any more hints on how to customize the search results? I do not want a search page, I want to use the search button on my homepage and have the results displayed like my tag page which uses tag.php so i copied that template over into search.php but it does not work.

  5. moshu
    Posted 10 years ago #

    1. Maybe you are seeing a cached version after you modify your search.php
    2. The only way to modify the search results - to modify the search.php template file which is meant to display the results.
    3. I don't know what you mean by "search page" - I assume a Page where the search form is displayed by itself; that has nothing to do with the results template
    4. We really have no idea what your "tag.php" does; and since that one is NOT a valid WP template file, we don't know how it works. Referencing to it without a link doesn't help.

  6. Ovidiu
    Posted 10 years ago #

    hello moshu, thx for trying to help.
    here is some more info:

    the site I am currently playing with is this: http://pacura.ru

    have a look what happens if you click onto the friends tag: http://pacura.ru/tag/friends/ you see text posts and image only posts while for image only posts the excerpt is shown. thats how I want it to be.

    now try and do a search for ela: http://pacura.ru/search/ela here it does not display the excerpt but the full post which is not what I want.BTW. I gave you the search term ela because it seems the search does not search inside the tags, so searching for friends is useless... strange

    now I tried copying the template tag.php which I use for the tagging display into the search.php but it does not work.

    Am I making myself clear right now? Any more info needed?

Topic Closed

This topic has been closed to new replies.

About this Topic