Problem solved! I tried everything at the WP end but nothing worked. In the end, loggin into the Site Ground hosting account and clearing the Dynamic Cache solved the problem. Note that I had a plugin to clear the cache and it made no difference.