Title: Remove Date From Search Engine
Last modified: December 18, 2016

---

# Remove Date From Search Engine

 *  Resolved [bayu-angora](https://wordpress.org/support/users/bayu-angora/)
 * (@bayu-angora)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/remove-date-from-search-engine/)
 * Dear All
 * I want to hide date from search engine.
    I use Annina theme (with child theme
   too).
 * Then I try to add this code to function.php ->
 *     ```
       function jl_remove_post_dates() {
       add_filter ('the_date', '__return_false'); 
       add_filter ('the_time', '__return_false'); 
       add_filter ('get_the_date', '__return_false'); 
       add_filter ('get_the_time', '__return_false'); 
       } add_action('loop_start', 'jl_remove_post_dates'); 
   
       function my_theme_enqueue_styles() { 
       $parent_style = 'parent_style'; 
       // this is 'annina-style' for the Annina theme. 
       wp_enqueue_style( $parent_style, get_template_directory_uri() . '/style.css');
       wp_enqueue_style( 'child_style', 
       gey_stylesheet_directory_uri() . '/style.css', 
       array( $parent_style), 
       wp_get_theme()->('version')
       ); 
       }
       add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' ); 
       ```
   
 * But the code above doesn’t work.
 * Can you suggest me some code to hide date from search engine result?
 * Thanks
    -  This topic was modified 9 years, 8 months ago by [Jose Castaneda](https://wordpress.org/support/users/jcastaneda/).
      Reason: backticks for code added

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Theme Author [CrestaProject](https://wordpress.org/support/users/crestaproject/)
 * (@crestaproject)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/remove-date-from-search-engine/#post-8565851)
 * Bayu Angora,
    you can use this plugin [https://wordpress.org/plugins/wp-meta-and-date-remover/](https://wordpress.org/plugins/wp-meta-and-date-remover/)
   without adding PHP functions in your child theme. This plugin removes date and
   author with PHP 🙂
 * Best Regards,
    CrestaProject
 *  Thread Starter [bayu-angora](https://wordpress.org/support/users/bayu-angora/)
 * (@bayu-angora)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/remove-date-from-search-engine/#post-8565961)
 * Thanks for suggestion.
 * Is this plugin remove
    date from search engine result or remove date from web
   post only?
 *  Theme Author [CrestaProject](https://wordpress.org/support/users/crestaproject/)
 * (@crestaproject)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/remove-date-from-search-engine/#post-8566073)
 * This plugin removes the date from the posts… and (I think) automatically the 
   search engines will no longer have the date because it can no longer obtain.
 *  Thread Starter [bayu-angora](https://wordpress.org/support/users/bayu-angora/)
 * (@bayu-angora)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/remove-date-from-search-engine/#post-8566310)
 * Ok. Thanks for support. 5 stars.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Remove Date From Search Engine’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/annina/1.9.9/screenshot.png)
 * Annina
 * [Support Threads](https://wordpress.org/support/theme/annina/)
 * [Active Topics](https://wordpress.org/support/theme/annina/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/annina/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/annina/reviews/)

## Tags

 * [date](https://wordpress.org/support/topic-tag/date/)

 * 4 replies
 * 2 participants
 * Last reply from: [bayu-angora](https://wordpress.org/support/users/bayu-angora/)
 * Last activity: [9 years, 8 months ago](https://wordpress.org/support/topic/remove-date-from-search-engine/#post-8566310)
 * Status: resolved