Adding Open Graph Metadata to Pods Pages

0

I'm doing some SEO optimization on my sites, and I notice a glaring hole: When someone shares one of my Pods pages, the <meta property='og:...'> tags are filled with the default values for my site's homepage.

I've tried a few plugins like Simple Facebook Connect and Wordpress SEO. None of them have pods support out of the box, so it looks like I've got to either modify one of these or roll my own.

Does anyone have a solution that works they are willing to share?

asked Jan 11 at 2:29

chris.pilko

889

add comment
enter at least 15 characters

2 Answers

0

It's a bit of a hack, but it gets me going for now. I borrowed heavily from the Simple Facebook Connect plugin for this code, and am including this file in my theme's functions.php.

Any comments / improvements would be appreciated.

http://pastebin.com/6JCYeUXc

answered Jan 11 at 9:51

chris.pilko

889

add comment
enter at least 15 characters
0

Although I wasn't using the open graph tags, I was working on something similar, and had to hack support for an events pod into the plugin BP Share it. You're welcome to my files if you like, but it is really nothing too exciting -- just concatenating strings to generate the URL + variables for the specific service...

answered Jan 11 at 9:54

magi182

110

add comment
enter at least 15 characters