Forums

Search Produches HTML in Pages (1 post)

  1. Anonymous
    Unregistered
    Posted 3 years ago #

    Ok so when I try to search the blog and the search produces the html within the pages like links or images etc. I want the searches to display the content if anyone could help it would be appreciated. Here whats in my search.php

    <?php get_header(); ?>
        <div id="content">
          <?php if (have_posts()) : ?>
          <?php while (have_posts()) : the_post(); ?>
          <div class="post"  id="post-<?php the_ID(); ?>">
             <a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>">
             <h1>
              <?php the_title(); ?>
              </h1></a>
    
            <p>
              <?php the_excerpt('Read more &raquo;'); ?>
            </p>
    		<div class="links"> Author:
              <?php the_author() ?>
              &nbsp;&nbsp;&nbsp;<?php the_time('m jS, Y') ?>
              in
              <?php the_category(', ') ?>
              &nbsp;&nbsp;&nbsp;
              <?php edit_post_link('Edit','','&nbsp;&nbsp; &nbsp; &nbsp;'); ?>
              <?php comments_popup_link('No Comments &raquo;', '1 Comment &raquo;', '% Comments &raquo;'); ?>
               </div>
          </div>
          <?php endwhile; ?>
    	  <?php else : ?>
            <h2 align="center">Not Found</h2>
            <p align="center">Sorry, but you are looking for something that isn't here.</p>
          <?php endif; ?>
    	  <p class="pagination">
              <?php next_posts_link('&laquo; Previous Entries') ?>
              <?php previous_posts_link('Next Entries &raquo;') ?>
            </p>
        </div>
              <?php get_sidebar(); ?>
     	<?php get_footer(); ?>

Topic Closed

This topic has been closed to new replies.

About this Topic