This is a quick fix on WordPress plugin called ‘Share Posts on Whatsapp’ by Aftab Husain. I have been using this plugin for quite sometime and it did not give me much problem. But it’s lack the facility to limit the sharing button to only posts, or to only pages.
I took a look at the coding and actually it can be further customized, such as limiting the sharing button to only blog posts (not pages). In the plugin folder, notice that there is a file called ‘share-post-on-whatsapp.php’. Edit the file and find this line: