Rajesh Vasani
Forum Replies Created
-
Forum: Plugins
In reply to: [W3 Total Cache] Disable on AMP pages/.*amp.*
this regexp will also disable page caching on page where URL path contain amp
eg:
xyz.com/amptest/
xyz.com/testamptest/
xyz.com/testamp/We just need to disable page caching only for AMP page not normal post page.
I suggest you to use this regexp..*/amp/this will disable page cache only on AMP page.
- This reply was modified 9 years, 5 months ago by Rajesh Vasani.
- This reply was modified 9 years, 5 months ago by Rajesh Vasani.
Forum: Plugins
In reply to: [OneSignal - Web Push Notifications] Featured Image for posts not appearsHello,
Please change this code in plugin will fix Featured Image issue.
file : wp-content/plugins/onesignal-free-web-push-notifications/onesignal-admin.php
from -> $post_has_featured_image = has_post_thumbnail($post);
to -> $post_has_featured_image = has_post_thumbnail($post->ID);older than 4.4 wordpress version for has_post_thumbnail($post_id) function need to pass post id. whereas from 4.4 wordpress version this function parameter change to has_post_thumbnail($post_id or $post).
https://developer.wordpress.org/reference/functions/has_post_thumbnail/
i assume you are using wordpress version which is older than 4.4.
- This reply was modified 9 years, 6 months ago by Rajesh Vasani.