Remove Search Date
-
Hi i have been searching for a solution to remove the date stamp on my search results so far i have found this link
https://www.blogtechnics.com/wordpress/remove-timestamp-search-result-wordpress
However my theme doesn’t seam to have any of the entries within the search.php file i am not too familiar with code but capable of editing with instruction.
Here’s the contents of my php file.
<?php get_header(); ?> <div class="container"> <div class="row"> <div id="content" class="grid_9 <?php echo of_get_option('blog_sidebar_pos') ?>"> <h1>Search for: "<?php the_search_query(); ?>"</h1> <?php if (have_posts()) : while (have_posts()) : the_post(); // The following determines what the post format is and shows the correct file accordingly $format = get_post_format(); get_template_part( 'includes/post-formats/'.$format ); if($format == '') get_template_part( 'includes/post-formats/standard' ); endwhile; else: ?> <div class="no-results"> <?php echo '<p><strong>' . __('There has been an error.', 'theme1672') . '</strong></p>'; ?> <p><?php _e('We apologize for any inconvenience, please', 'theme1672'); ?> <a href="<?php bloginfo('url'); ?>/" title="<?php bloginfo('description'); ?>"><?php _e('return to the home page', 'theme1672'); ?></a> <?php _e('or use the search form below.', 'theme1672'); ?></p> <?php get_search_form(); /* outputs the default WordPress search form */ ?> </div><!--no-results--> <?php endif; ?> <?php get_template_part('includes/post-formats/post-nav'); ?> </div><!-- #content --> <?php get_sidebar(); ?> </div> </div> <?php get_footer(); ?>
Thanks in advance.
Jamie
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Remove Search Date’ is closed to new replies.