Title: Remove Date from Post
Last modified: February 12, 2021

---

# Remove Date from Post

 *  Resolved [bulls_shark](https://wordpress.org/support/users/bulls_shark/)
 * (@bulls_shark)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/remove-date-from-post-3/)
 * Hello, could you perhaps include an option that prevents the date of the pages
   from being displayed in the google search engine?
 * Thanks for the support

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

 *  Plugin Author [Gabe Livan](https://wordpress.org/support/users/gabelivan/)
 * (@gabelivan)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/remove-date-from-post-3/#post-14040760)
 * [@bulls_shark](https://wordpress.org/support/users/bulls_shark/) can you show
   us an example so everyone reading this could check it out? Perhaps you’re referring
   to a specific HTML tag. Some print screen would be good. If you’re not comfortable
   sharing your website’s URL here, you can reach out via [https://www.gabelivan.com/contact/](https://www.gabelivan.com/contact/)
 *  Thread Starter [bulls_shark](https://wordpress.org/support/users/bulls_shark/)
 * (@bulls_shark)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/remove-date-from-post-3/#post-14041969)
 * Hello, thank you. I’ve just sent you everything!
 * Really top support! I can only recommend
 *  Plugin Author [Gabe Livan](https://wordpress.org/support/users/gabelivan/)
 * (@gabelivan)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/remove-date-from-post-3/#post-14042874)
 * [@bulls_shark](https://wordpress.org/support/users/bulls_shark/) as this was 
   solved privately (at least I guided you and provided a method to strip that date,
   even though it’s not possible stripping that HTML code with Asset CleanUp), I’ll
   mark this topic as “resolved”.
 * In case anyone would want to strip any HTML from their WordPress website and 
   just can’t do it in the most effective way (which is editing it from the original
   location where it was created in the first place), then a code like the following
   one could be used:
 *     ```
       add_action('wp_loaded', function() {
           if (is_admin()) {
               return;
           }
   
           ob_start(function($htmlSource) {
               // you might need to use \n for new lines, it depends on the HTML source code
               return str_replace('[place the actual HTML code here]', '', $htmlSource);
           });
       });
       ```
   
 *  Thread Starter [bulls_shark](https://wordpress.org/support/users/bulls_shark/)
 * (@bulls_shark)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/remove-date-from-post-3/#post-14045091)
 * Hello, thanks again for the support

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

The topic ‘Remove Date from Post’ is closed to new replies.

 * ![](https://ps.w.org/wp-asset-clean-up/assets/icon-256x256.png?rev=1981952)
 * [Asset CleanUp: Page Speed Booster](https://wordpress.org/plugins/wp-asset-clean-up/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-asset-clean-up/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-asset-clean-up/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-asset-clean-up/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-asset-clean-up/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-asset-clean-up/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [bulls_shark](https://wordpress.org/support/users/bulls_shark/)
 * Last activity: [5 years, 3 months ago](https://wordpress.org/support/topic/remove-date-from-post-3/#post-14045091)
 * Status: resolved