Title: Exclude content using id or class or shortcode?
Last modified: January 15, 2025

---

# Exclude content using id or class or shortcode?

 *  Resolved [Nixiknw](https://wordpress.org/support/users/nixiknw/)
 * (@nixiknw)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/exclude-content-using-id-or-class-or-shortcode/)
 * Hello
   on our website (wordpress / divi) we want to display current content (e.
   g. date / time) in various places.If this page has been cached, the time displayed
   on the now static page will of course no longer change.
 * Is it possible to keep the corresponding div-container with this function out
   of the cache, for example via the css-id or using shortcode?
 * Many thanks for your help
 * Uwe

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

 *  Plugin Author [Emre Vona](https://wordpress.org/support/users/emrevona/)
 * (@emrevona)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/exclude-content-using-id-or-class-or-shortcode/#post-18246164)
 * do you want to exclude a part of a page?
 *  Thread Starter [Nixiknw](https://wordpress.org/support/users/nixiknw/)
 * (@nixiknw)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/exclude-content-using-id-or-class-or-shortcode/#post-18246292)
 * yes
 *  Plugin Author [Emre Vona](https://wordpress.org/support/users/emrevona/)
 * (@emrevona)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/exclude-content-using-id-or-class-or-shortcode/#post-18246294)
 * when a page is cached, the page is saved as a static html file, so you cannot
   exclude a part of a page. you should load the data via Ajax instead of PHP.
 *  [generosus](https://wordpress.org/support/users/generosus/)
 * (@generosus)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/exclude-content-using-id-or-class-or-shortcode/#post-18246814)
 * Hi Uwe,
 * Happy to help you. Our website also uses WP Fastest Cache and has a couple of
   pages where we also need to bypass the caching of certain page elements. You 
   can solve your issue two different ways (as we did):
    1. Hire a JS/PHP developer at upwork[dot]com.
       and/or
    2. Use the plugin, Content No Cache. (Useful Tip: Create a shortcode via filter
       or code snippet for generating your date/time, then use the shortcode as explained
       in the plugin’s Details section).
 * The above should work for you too!
 * Best wishes 🙂
 *  Thread Starter [Nixiknw](https://wordpress.org/support/users/nixiknw/)
 * (@nixiknw)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/exclude-content-using-id-or-class-or-shortcode/#post-18247773)
 * Hello
   Thank you very much for your answers. I will have a look at the plugin 
   when I get the time.Thank you

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

The topic ‘Exclude content using id or class or shortcode?’ is closed to new replies.

 * ![](https://ps.w.org/wp-fastest-cache/assets/icon-256x256.png?rev=2064586)
 * [WP Fastest Cache - WordPress Cache Plugin](https://wordpress.org/plugins/wp-fastest-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-fastest-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-fastest-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-fastest-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-fastest-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-fastest-cache/reviews/)

 * 6 replies
 * 3 participants
 * Last reply from: [Nixiknw](https://wordpress.org/support/users/nixiknw/)
 * Last activity: [1 year, 4 months ago](https://wordpress.org/support/topic/exclude-content-using-id-or-class-or-shortcode/#post-18247773)
 * Status: resolved