I am trying to add a pinterest link to my wordpress site. Here on stackoverflow I found the following code:
<?php /*Stuff for Pinterest*/ //getting the permalink $postpermalink = urlencode( get_permalink() ); //getting the thumbnail $imageurl = urlencode( wp_get_attachment_url( get_post_thumbnail_id($post->ID) ) ); /*End of Pinterest*/ ?> <a target="blank" href="http://pinterest.com/pin/create/button/?url=<?php echo $postpermalink ?>&media=<?php echo $imageurl ?>" title="Pin This Post">pinterest</a>
But when I test it, pinterest gives me the following error:
Whoops! Parameter 'method' (value link) is not one of unknown, uploaded, scraped, bookmarklet, email, iphone, button, ipad, android, android_tablet, api_sdk, extension, api_other, bad.
I've tried tons of different links, but without success. Any ideas?