Igor Kromin |   Consultant. Coder. Blogger. Tinkerer. Gamer.

I've been noticing that the SEO Metadata Plugin for FlatPress has been removing quotes and other punctuation characters from the metadata. This makes any blog snippets on social media sites (Facebook, Google Plus, etc) appear unprofessional. The plugin can already preserve these characters, it just needs to be configured.

Want more Flatpress hints? Check out this article - Make FlatPress generate meta tags without the use of the SEO Metatag Info plugin.

There is a readme file in the plugin directory that describes how to configure this, but for the purposes of illustration, the changes are done in the plugin.seometataginfo.php file. There is a line that defines the $keep_char variable. I set mine to this:
$keep_char = ",.'";

Now the metadata will contain the punctuation and single quotes.


A quick disclaimer...

Although I put in a great effort into researching all the topics I cover, mistakes can happen. Use of any information from my blog posts should be at own risk and I do not hold any liability towards any information misuse or damages caused by following any of my posts.

All content and opinions expressed on this Blog are my own and do not represent the opinions of my employer (Oracle). Use of any information contained in this blog post/article is subject to this disclaimer.
Hi! You can search my blog here ⤵
NOTE: (2022) This Blog is no longer maintained and I will not be answering any emails or comments.

I am now focusing on Atari Gamer.