I initially wrote an article about the Pretty Link Twitter Badge not displaying back in March of 2012 and it appears some things have changed since then. The issue in my case is a conflict between the Pretty Link WordPress plugin and Greg’s High Performance SEO WordPress plugin. Since the original article it appears that the GHPSEO has modified the location of a variable I modified to resolve the issue. Below is information on how to resolve.
Please read the original article first by clicking here. The issue actually causes issues with the Pretty Link Twitter Badge as well as the Pretty Link Social Media Bar.
The fix is exactly the same except for the code that needs to be modified now resides in ghpseo.php instead of ghpseo-writing.php.
PHP Code To Modify In ghpseo.php File:
- $description = $this->get_meta_clean($tocheck,'alternative_description', true);
Updated PHP Code In ghpseo.php File:
- //$description = $this->get_meta_clean($tocheck,'alternative_description', true);
- $description = strip_tags($post->post_title);
Basically you are commenting out the original line and adding the new line below. Please make sure to backup the original file before making any changes so it can be restored if necessary. After making this modification the Pretty Link Tweet badge should begin displaying again on the front page of your WordPress site as well as in the WordPress single post page view.