Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #51313
    Dan
    Participant

    Hi,
    I’m a bit of a WordPress newbie. I’m looking to change the format of the search result and I’m not sure if this is controlled by the WP setting, the theme or if I need a plugin.

    I’m using Adventurous Pro and looking to format the results returned in the search page. By default it seems to be showing Titles/Images/a few lines of copy/categories/tags. See this example from my site: http://www.residents4u.org/?s=john+lodge&submit=Search

    It takes a lot of space and usually a user wants to scan down lots of results and use their eye to pick the one they want. The images/tags/categories etc. take a lot of space. Is there a way to format the results so they look more google like, i.e. a list of titles and short abstracts in a list?
    Thanks for any advice.

    Dan

    #51341
    Sakin
    Keymaster

    @Dan: Yes, it will be nice. We are in the process of uploading new version where there will be clean search template like you described.

    For now, you can build child theme and add the content-search.php file and add the following code. For child theme, you can check out http://catchthemes.com/blog/create-child-theme-wordpress/

    <?php
    /**
     * The template for displaying Search Result
     *
     * @package Catch Themes
     * @subpackage Adventurous
     * @since Adventurous 1.0
     */
    ?>
    
    <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
     
        <div class="entry-container">
        
    		<header class="entry-header">
        		<h1 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'adventurous' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h1>
    		</header><!-- .entry-header -->
    
    		<div class="entry-summary">
            <?php the_excerpt(); ?>
        </div><!-- .entry-summary -->  
            
        <footer class="entry-meta">          
            <?php edit_post_link( __( 'Edit', 'adventurous' ), '<span class="edit-link">', '</span>' ); ?>        
        </footer><!-- .entry-meta -->
            
      	</div><!-- .entry-container -->
        
    </article><!-- #post-<?php the_ID(); ?> -->
    #51345
    Dan
    Participant

    Thanks Sakin, I’ll give it a go.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Format of returned search results’ is closed to new replies.