Andy6350
asked on
Word Press separating is_archive and is_search within loop.php
Can anyone help me with modifying the loop.php file in the twentyten theme for wordpress.
I would like to display search results totally different to my archive results.
can anyone advise what part of code am i changing? i take it its within the loop.php where it says
<?php if ( is_archive() || is_search() ) : // Display excerpts for archives and search. ?>
<div class="entry-summary">
<?php the_excerpt(); ?>
</div><!-- .entry-summary -->
<?php else : ?>
<div class="entry-content">
<?php the_content( __( 'Continue reading <span class="meta-nav">→</s pan>', 'twentyten' ) ); ?>
</div><!-- .entry-content -->
<?php endif; ?>
I would like to display search results totally different to my archive results.
can anyone advise what part of code am i changing? i take it its within the loop.php where it says
<?php if ( is_archive() || is_search() ) : // Display excerpts for archives and search. ?>
<div class="entry-summary">
<?php the_excerpt(); ?>
</div><!-- .entry-summary -->
<?php else : ?>
<div class="entry-content">
<?php the_content( __( 'Continue reading <span class="meta-nav">→</s
</div><!-- .entry-content -->
<?php endif; ?>
ASKER
Thank you for responding
I changed the above code to the code attached so that i could display my posts results different to my search results.
the following link shows what my posts display like
http://www.bluebean.org.uk/current/category/176000-250000/
the link below shows the issues i have with the search, not all the content seems to appear in the content div, only the first post.
http://www.bluebean.org.uk/current/?x=52&y=16&s=house
If this is not clear then let me know
Many Thanks,
loop.php
I changed the above code to the code attached so that i could display my posts results different to my search results.
the following link shows what my posts display like
http://www.bluebean.org.uk/current/category/176000-250000/
the link below shows the issues i have with the search, not all the content seems to appear in the content div, only the first post.
http://www.bluebean.org.uk/current/?x=52&y=16&s=house
If this is not clear then let me know
Many Thanks,
loop.php
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Even the comment says // Display excerpts for archives and search
Everything that isn't an archive or search shows the_content