Support » Themes and Templates » Cutline 3-Column & WordPress 2.6: CSS for Search Results

  • I’m running Cutline Three-Column Right on WordPress 2.6 at http://www.acandidworld.net. The problem is, the search results page, as coded by Cutline’s creator, completely botches a “for” or a “while” loop somewhere, resulting in ever-increasing font sizes… example. I can’t for the life of me figure out how to break the loop. I’d greatly appreciate any assistance. Below is the code for the results page, unmodified:

    <?php get_header(); ?>
    
    	<div id="content_box">
    
    		<div id="content" class="posts">
    
    		<?php if (have_posts()) : ?>
    
    			<h2 class="archive_head">Search Results for <span class="green"><?php echo $s; ?></span></h2>
    
    			<?php while (have_posts()) : the_post(); ?>		
    
    			<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
    			<h4><?php the_time('F jS, Y') ?><!-- by <?php the_author() ?> --> &middot; <?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?></h4>
    			<div class="entry">
    				<?php the_excerpt() ?>
    				<p><a href="<?php the_permalink() ?>#more-<?php the_ID(); ?>" title="Read the rest of this entry">[Read more &rarr;]</a></p>
    			</div>
    			<p class="tagged"><strong>Tags:</strong> <?php the_category(' &middot; ') ?></p>
    			<div class="clear"></div>
    
    			<?php endwhile; ?>
    
    			<?php include (TEMPLATEPATH . '/navigation.php'); ?>
    
    		<?php else : ?>
    
    			<h2 class="page_header">Welp, we couldn't find that...try again?</h2>
    			<div class="entry">
    				<?php include (TEMPLATEPATH . '/searchform.php'); ?>
    			</div>
    
    		<?php endif; ?>
    
    		</div>
    
    		<?php include (TEMPLATEPATH . '/sidebar.php'); ?>
    
    		<?php include (TEMPLATEPATH . '/r_sidebar.php'); ?>
    
    	</div>
    
    <?php get_footer(); ?>
Viewing 5 replies - 1 through 5 (of 5 total)
  • Update: the problem is int he theme’s “excerpt” function

    I just changed the “excerpt” line to “content”: I can’t figure out where the “Excerpt” function is to debug it. I’d still appreciate help.

    I’m having the same problem with search results, namely ever increasing font size with each successive result. Based on the above cryptic advice,

    I added
    <div class=”entry”>
    <div id=”the_excerpt”>
    <?php the_excerpt() ?>
    etc.
    and still getting the same results.

    Perhaps a download and compare with other Cutline themes could render better findings.

    I just compared Cutline 1.4 search.php to the old one and noticd some slight differences. I copied the new file to the theme and now the search box appears to be working just fine.

    I spoke too soon. The problem is back. This malady occurs in Firefox and in Safari.

    Back to the drawing board until help arrives. If at all.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Cutline 3-Column & WordPress 2.6: CSS for Search Results’ is closed to new replies.