How to limit Jetpack Open Graph description
-
I just ran into a use case where the Jetpack Open Graph functionality is causing trouble.
A WordPress user asked me to see if the antispam plugin he activated to protect his email address on the Contact page was working. He was using Email Address Encoder, a plugin that scrambles email addresses.
When I looked at the page source code, I noticed that the email address was included in plain text, inside the Jetpack Open Graph Tags (JOGT) description, easily available for spiders, which renders the obfuscation pretty useless.
I looked for some ways to limit the output of the JOGT description field:
– Using the Excerpt field: this works fine, JOGT uses the Excerpt rather than the post content. Alas, the Excerpt field is available for Posts, not for Pages. The contact page is obviously using the Page post type.
– The “More” tag. This can be inserted even in a Page, but it’s not taken into account by Jetpack.What do you think, is there another way of controlling the output of the JOGT on Pages?
Could Jetpack use the
<!--more-->
tag as a delimiter?PS: I know that there are ways of completely disabling the functionality, but the user wants to use the Publicize and Sharing modules — he just doesn’t want to give his email address in clear ??
- The topic ‘How to limit Jetpack Open Graph description’ is closed to new replies.