Home Code Modify Search Results for a WordPress theme

Modify Search Results for a WordPress theme

900
0

I recently modified the Search Results file (search.php) of a theme.

Where the file said: <?php the_time(get_the_time(get_option(‘date_format’)).’ – ‘.get_the_time(get_option(‘time_format’))) ?>
I replaced it with: <?php if(get_option(‘fusion_indexposts’)==’excerpt’) the_excerpt(); else the_content(__(‘Read the rest of this entry &raquo;’, ‘fusion’)); ?>

Why the author had the search page returning the post time and no excerpt is beyond me, but I like it the new way much better.  Try it out for yourself!

LEAVE A REPLY

Please enter your comment!
Please enter your name here