WordPress.org

Forums

Search, multi-post display (2 posts)

  1. khugga
    Member
    Posted 6 years ago #

    I have been working with the classic theme. The classic theme dose not provide templates; search, single, searchform, page, or searchpage

    when I do a search it displays a mutiple post page tamplated by my index template. It always shows full post.

    I want to show only an exerp or no content at all and have the titles show up as links. See http://www.shawnstark.com

    my current search form looks like this

    <label class="head_search"><?php _e('Search:'); ?></label>
    <form class="head_search" method="get" action="<?php bloginfo('home'); ?>">
    <input type="text" name="s" id="s" size="15" />
    <input type="submit" value="<?php _e('Search'); ?>" />
    </form>

    I want to format the output to with an alternate template too index.php. I know I can set a template when creating a page. Is there a way I can force search results from anywhere to display in a specified page. Please Help I do not want to switch themes right now.

  2. moshu
    Member
    Posted 6 years ago #

    Reading the Docs always helps...
    Template_Hierarchy

Topic Closed

This topic has been closed to new replies.

About this Topic