How can I exclude my Posts views & like counter using this plugin?
-
Hi there,
As I use WP-Optimize to cache my pages, I found an issue with dynamic Post Views & Likes displayed using the Theme I am using.Hence I think this Plugin can solve to exclude those parts from being cached. But I do not really understand, how I need to set this up, as the documentation is lacking examples of exactly this point where it just says “Add to that element all the content that you want to exclude from the cache” ?
I want to exclude the HTML part of my blog to not be cached anymore:
<ul class="bwp-post-counters list-unstyled clearfix"> <li class="bwp-views-count"> <a href="#"><i class="fa fa-eye"></i>21</a> </li> <li class="bwp-likes-count"> <span class="jm-post-like"><a href="#" data-post_id="9773"><span class="like"><i class="fa fa-heart-o"></i></span><span class="count">0</span></a></span> </li> </ul>
Questions
- For the given case, what do I need to put in the “content” field of a new Content No Cache-snippet?
- Do I put the Content No Cache-snippet into the PHP code of the function where the given Views & Likes are rendered, or do I need to render the Shortcode into the HTML (and it will be replaced via JavaScript then from the Plugin)?
Thanks for some further explanation on how to use the Plugin for this case – or if I might be wrong and it can’t help for this.
The page I need help with: [log in to see the link]
- The topic ‘How can I exclude my Posts views & like counter using this plugin?’ is closed to new replies.