Code Placed in Every Post? Wordpress Plugin?

1 view
Skip to first unread message

John Vasko

unread,
Apr 27, 2010, 11:33:19 PM4/27/10
to OpenLike
I really like the idea of Open Like. My question is simple. Does the
code have to be placed into every post on a Wordpress Blog or is there
a plugin that can do this? I know you guys just launched but it seems
like this would be an excellent idea.

Robby Grossman

unread,
Apr 28, 2010, 12:01:37 AM4/28/10
to open...@googlegroups.com
Doesn't look like a Wordpress plugin exists yet, but it could be made trivially by creating a content filter, i.e.:

<?php

function add_openlike($text) {
  return $text + "<br /> <code for openlike goes here>";
}

add_filter('the_content', 'add_openlike');

?>

Cheers,
Robby
Reply all
Reply to author
Forward
0 new messages