Home Code Modify Search Results for a WordPress theme

Modify Search Results for a WordPress theme

1532
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!

Previous articleDenny’s Restaurant FAIL: Bad spelling can happen to the best of us
Next articleThis message could not be sent. Error 0x80004005

LEAVE A REPLY

Please enter your comment!
Please enter your name here